mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-20 15:08:51 +00:00
cmake - use INCLUDES DESTINATION for includes paths export
As it's more idiomatic.
This commit is contained in:
@@ -32,7 +32,6 @@ set(IFCPARSE_FILES ${IFCPARSE_CPP_FILES} ${IFCPARSE_H_FILES})
|
|||||||
|
|
||||||
add_library(IfcParse ${IFCPARSE_FILES})
|
add_library(IfcParse ${IFCPARSE_FILES})
|
||||||
target_compile_definitions(IfcParse PUBLIC ${SCHEMA_DEFINITIONS})
|
target_compile_definitions(IfcParse PUBLIC ${SCHEMA_DEFINITIONS})
|
||||||
target_include_directories(IfcParse PUBLIC $<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>)
|
|
||||||
set_target_properties(IfcParse
|
set_target_properties(IfcParse
|
||||||
PROPERTIES
|
PROPERTIES
|
||||||
COMPILE_FLAGS -DIFC_PARSE_EXPORTS
|
COMPILE_FLAGS -DIFC_PARSE_EXPORTS
|
||||||
@@ -60,4 +59,5 @@ target_link_libraries(IfcParse ${ROCKSDB_LIBRARIES})
|
|||||||
install(TARGETS IfcParse
|
install(TARGETS IfcParse
|
||||||
EXPORT ${IFCOPENSHELL_EXPORT_TARGETS}
|
EXPORT ${IFCOPENSHELL_EXPORT_TARGETS}
|
||||||
PUBLIC_HEADER DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/ifcparse"
|
PUBLIC_HEADER DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/ifcparse"
|
||||||
|
INCLUDES DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}"
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user