Commit a98a148d authored by Heng Liu's avatar Heng Liu

add target_include_property

parent fdb6bca3
Pipeline #11692 passed with stage
in 6 minutes and 51 seconds
......@@ -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}"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment