mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-09 21:53:40 +00:00
CMakeLists.txt: Remove sources specific to an IFC release we are not using from the project
This commit is contained in:
@@ -276,14 +276,22 @@ endif()
|
|||||||
|
|
||||||
IF(USE_IFC4)
|
IF(USE_IFC4)
|
||||||
ADD_DEFINITIONS(-DUSE_IFC4)
|
ADD_DEFINITIONS(-DUSE_IFC4)
|
||||||
|
SET(IFC_RELEASE_NOT_USED "2x3")
|
||||||
ELSE()
|
ELSE()
|
||||||
ADD_DEFINITIONS(-DUSE_IFC2x3) # TODO Make all caps? i.e. USE_IFC2X3
|
ADD_DEFINITIONS(-DUSE_IFC2x3) # TODO Make all caps? i.e. USE_IFC2X3
|
||||||
|
SET(IFC_RELEASE_NOT_USED "4")
|
||||||
ENDIF()
|
ENDIF()
|
||||||
|
|
||||||
# IfcParse
|
# IfcParse
|
||||||
file(GLOB CPP_FILES ../src/ifcparse/*.cpp)
|
file(GLOB CPP_FILES ../src/ifcparse/*.cpp)
|
||||||
file(GLOB H_FILES ../src/ifcparse/*.h)
|
file(GLOB H_FILES ../src/ifcparse/*.h)
|
||||||
set(SOURCE_FILES ${CPP_FILES} ${H_FILES})
|
set(SOURCE_FILES ${CPP_FILES} ${H_FILES})
|
||||||
|
# Remove sources specific to an IFC release we are not using
|
||||||
|
list(REMOVE_ITEM SOURCE_FILES ${CMAKE_CURRENT_SOURCE_DIR}/../src/ifcparse/Ifc${IFC_RELEASE_NOT_USED}.h)
|
||||||
|
list(REMOVE_ITEM SOURCE_FILES ${CMAKE_CURRENT_SOURCE_DIR}/../src/ifcparse/Ifc${IFC_RELEASE_NOT_USED}enum.h)
|
||||||
|
list(REMOVE_ITEM SOURCE_FILES ${CMAKE_CURRENT_SOURCE_DIR}/../src/ifcparse/Ifc${IFC_RELEASE_NOT_USED}-latebound.h)
|
||||||
|
list(REMOVE_ITEM SOURCE_FILES ${CMAKE_CURRENT_SOURCE_DIR}/../src/ifcparse/Ifc${IFC_RELEASE_NOT_USED}.cpp)
|
||||||
|
list(REMOVE_ITEM SOURCE_FILES ${CMAKE_CURRENT_SOURCE_DIR}/../src/ifcparse/Ifc${IFC_RELEASE_NOT_USED}-latebound.cpp)
|
||||||
ADD_LIBRARY(IfcParse STATIC ${SOURCE_FILES})
|
ADD_LIBRARY(IfcParse STATIC ${SOURCE_FILES})
|
||||||
IF(UNICODE_SUPPORT)
|
IF(UNICODE_SUPPORT)
|
||||||
TARGET_LINK_LIBRARIES(IfcParse ${ICU_LIBRARIES})
|
TARGET_LINK_LIBRARIES(IfcParse ${ICU_LIBRARIES})
|
||||||
|
|||||||
Reference in New Issue
Block a user