Skip to content

Commit

Permalink
[build] Enhance the transitive stlplus include path.
Browse files Browse the repository at this point in the history
  • Loading branch information
pmoulon committed Jun 14, 2018
1 parent bf29a4c commit c725f1d
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions src/third_party/stlplus3/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,16 @@ list(APPEND LIBSLTPLUS_SRCS
${LIBSLTPLUS_HPP_FILESYSTEM} ${LIBSLTPLUS_CPP_FILESYSTEM})

add_library(openMVG_stlplus ${LIBSLTPLUS_SRCS})
target_include_directories(openMVG_stlplus PUBLIC
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
$<INSTALL_INTERFACE:${CMAKE_INSTALL_PREFIX}/include/stlplus>)
if(STLPLUS_INCLUDE_INSTALL_DIR)
target_include_directories(openMVG_stlplus PUBLIC
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
$<INSTALL_INTERFACE:${CMAKE_INSTALL_PREFIX}/include/openMVG>
$<INSTALL_INTERFACE:${STLPLUS_INCLUDE_INSTALL_DIR}>/filesystemSimplified)
else()
target_include_directories(openMVG_stlplus PUBLIC
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
$<INSTALL_INTERFACE:${CMAKE_INSTALL_PREFIX}/include/stlplus>)
endif()
set_property(TARGET openMVG_stlplus PROPERTY FOLDER OpenMVG/3rdParty)

install(
Expand Down

0 comments on commit c725f1d

Please sign in to comment.