mengdalian / ifcplusplus

Automatically exported from code.google.com/p/ifcplusplus
Other
0 stars 0 forks source link

Make viewer optional #12

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hi

I see you added the Cmake files, thank you very much. One improvement would be 
to make the SimpleViewer optional, as I integrate IFC in my CMake build process 
by EXTERNALPROJECT_ADD. So as I have my own application and don't use Qt, I 
need a way to only build the framework. The easiest would be to introduce an 
option for the viewer. This would look like this in your root CMakeLists.txt:

...
ENDIF(NOT CARVE_BINARY_DIR)
message(STATUS   
"------------------------------------------------------------------------")

OPTION(BUILD_SIMPLEVIEWER "Build the simple viewer example applilcation" ON)

add_subdirectory (Carve)
add_subdirectory (IfcPlusPlus)
add_subdirectory (IfcPlusPlusGeometry)
IF(BUILD_SIMPLEVIEWER)
    add_subdirectory (SimpleViewer)
ENDIF()

Would it be possible to integrate this (or something similar)?

Thanks for the great work

Original issue reported on code.google.com by robert.h...@gmail.com on 8 Jul 2014 at 12:21

GoogleCodeExporter commented 9 years ago
I added this option to the CMake file, will check-in soon.
Thanks for the suggestion :)

Original comment by fabian.g...@gmail.com on 9 Jul 2014 at 10:16