Skip to content

Commit

Permalink
[build] Improve include linking when OpenMVG is used as a third party o…
Browse files Browse the repository at this point in the history
  • Loading branch information
pmoulon committed Jun 13, 2018
1 parent 1791bea commit 034aee3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/openMVG/cameras/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@

add_library(openMVG_camera INTERFACE)
set_property(TARGET openMVG_camera APPEND PROPERTY
INTERFACE_INCLUDE_DIRECTORIES "$<INSTALL_INTERFACE:include>")

target_compile_features(openMVG_camera INTERFACE ${CXX11_FEATURES})
target_link_libraries(openMVG_camera INTERFACE openMVG_numeric openMVG_geometry)
install(TARGETS openMVG_camera DESTINATION lib EXPORT openMVG-targets)
Expand Down
2 changes: 2 additions & 0 deletions src/openMVG/geodesy/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@

add_library(openMVG_geodesy INTERFACE)
target_compile_features(openMVG_geodesy INTERFACE ${CXX11_FEATURES})
set_property(TARGET openMVG_camera APPEND PROPERTY
INTERFACE_INCLUDE_DIRECTORIES "$<INSTALL_INTERFACE:include>")
target_link_libraries(openMVG_geodesy
INTERFACE
openMVG_numeric
Expand Down

0 comments on commit 034aee3

Please sign in to comment.