@@ -21,13 +21,15 @@ cmake_minimum_required (VERSION 2.6)
2121
2222project (IfcOpenShell)
2323
24- OPTION (UNICODE_SUPPORT "Build with Unicode support enabled (requires ICU)." ON )
25- OPTION (COLLADA_SUPPORT "Build with COLLADA support enabled (requires OpenCOLLADA)." ON )
24+ OPTION (UNICODE_SUPPORT "Build IfcOpenShell with Unicode support (requires ICU)." ON )
25+ OPTION (COLLADA_SUPPORT "Build IfcConvert with COLLADA support (requires OpenCOLLADA)." ON )
2626OPTION (ENABLE_BUILD_OPTIMIZATIONS "Enable certain compiler and linker optimizations on RelWithDebInfo and Release builds." OFF )
2727#TODO OPTION(IFCCONVERT_DOUBLE_PRECISION "IfcConvert: Use double precision floating-point numbers." OFF)
2828OPTION (USE_IFC4 "Use IFC 4 instead of IFC 2x3" OFF )
2929OPTION (BUILD_IFCPYTHON "Build IfcPython." ON )
3030OPTION (BUILD_EXAMPLES "Build example applications." ON )
31+ # TODO QtViewer is deprecated ATM as it uses the 0.4 API
32+ # OPTION(BUILD_QTVIEWER "Build IfcOpenShell Qt GUI Viewer (requires Qt 4 framework)." OFF)
3133
3234# Find Boost
3335IF (MSVC )
@@ -117,7 +119,7 @@ IF(UNICODE_SUPPORT)
117119 SET (ICU_LIBRARIES icuuc icudata)
118120 ENDIF ()
119121 ELSE ()
120- MESSAGE (STATUS "Unable to find ICU library files, continuing " )
122+ MESSAGE (FATAL_ERROR "UNICODE_SUPPORT enabled, but unable to find ICU. Disable UNICODE_SUPPORT or fix ICU paths to proceed. " )
121123 ENDIF ()
122124ENDIF ()
123125
@@ -158,7 +160,7 @@ IF(COLLADA_SUPPORT)
158160 )
159161 ENDIF ()
160162 ELSE ()
161- MESSAGE (STATUS " OpenCOLLADA header files not found, continuing without COLLADA support " )
163+ MESSAGE (FATAL_ERROR "COLLADA_SUPPORT enabled, but unable to find OpenCOLLADA. Disable COLLADA_SUPPORT or fix OpenCOLLADA paths to proceed. " )
162164 ENDIF ()
163165ENDIF ()
164166
@@ -242,15 +244,15 @@ endif()
242244IF (USE_IFC4)
243245 ADD_DEFINITIONS (-DUSE_IFC4 )
244246ELSE ()
245- ADD_DEFINITIONS (-DUSE_IFC2x3 )
247+ ADD_DEFINITIONS (-DUSE_IFC2x3 ) # TODO Make all caps? i.e. USE_IFC2X3
246248ENDIF ()
247249
248250# IfcParse
249251file (GLOB CPP_FILES ../src/ifcparse/*.cpp )
250252file (GLOB H_FILES ../src/ifcparse/*.h )
251253set (SOURCE_FILES ${CPP_FILES} ${H_FILES} )
252254ADD_LIBRARY (IfcParse STATIC ${SOURCE_FILES} )
253- IF (icu )
255+ IF (UNICODE_SUPPORT )
254256 TARGET_LINK_LIBRARIES (IfcParse ${ICU_LIBRARIES} )
255257ENDIF ()
256258
@@ -297,7 +299,10 @@ IF(BUILD_EXAMPLES)
297299 ADD_SUBDIRECTORY (../src/examples examples )
298300ENDIF ()
299301
300- # ADD_SUBDIRECTORY(../src/qtviewer qtviewer)
302+ # TODO QtViewer is deprecated ATM as it uses the 0.4 API
303+ # IF(BUILD_QTVIEWER)
304+ # ADD_SUBDIRECTORY(../src/qtviewer qtviewer)
305+ # ENDIF()
301306
302307# CMake installation targets
303308FILE (GLOB include_files_geom ../src/ifcgeom/*.h )
0 commit comments