Skip to content
Snippets Groups Projects
Commit a98a148d authored by Heng Liu's avatar Heng Liu
Browse files

add target_include_property

parent fdb6bca3
No related branches found
No related tags found
2 merge requests!8Some CMake improvements,!7Some CMake improvements
Pipeline #11692 passed
......@@ -59,8 +59,8 @@ link_directories (${CMAKE_BINARY_DIR} ${LIBRARY_DIRS} )
add_library (HexEx SHARED ${SOURCES})
add_library (HexExStatic STATIC ${SOURCES})
target_link_libraries (HexEx ${LIBRARIES})
target_link_libraries (HexExStatic ${LIBRARIES})
target_link_libraries (HexEx ${LIBRARIES} OpenVolumeMesh)
target_link_libraries (HexExStatic ${LIBRARIES} OpenVolumeMesh)
#
# In order for the exact predicates to work the compiler
......@@ -108,6 +108,12 @@ set_target_properties (HexEx
CXX_STANDARD 11
)
target_include_directories(HexEx
INTERFACE
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/src>
$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>
)
set_target_properties (HexExStatic
PROPERTIES
COMPILE_FLAGS "${HEXEX_COMPILE_FLAGS}"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment