@@ -108,48 +108,9 @@ function(PARAM_SETTER THE_EXECUTABLE)
108
108
endif ()
109
109
endfunction ()
110
110
111
- if (EMSCRIPTEN)
112
- #build parameters for web-ifc
113
- add_executable (web-ifc ${WebIfcManager} ${WebIfcSchema} ${WebIfcParsing} ${WebIfcAPI} ${WebIfcUtility} ${WebIfcGeometry} )
114
- param_setter(web-ifc)
115
- set_target_properties (web-ifc PROPERTIES LINK_FLAGS "${DEBUG_FLAG} --bind -flto --define-macro=REAL_T_IS_DOUBLE -s ALLOW_MEMORY_GROWTH=1 -s MAXIMUM_MEMORY=4GB -sSTACK_SIZE=5MB -s EXPORT_NAME=WebIFCWasm -s MODULARIZE=1 -s ENVIRONMENT=web" )
116
-
117
- add_executable (web-ifc-node ${WebIfcManager} ${WebIfcSchema} ${WebIfcParsing} ${WebIfcAPI} ${WebIfcUtility} ${WebIfcGeometry} )
118
- param_setter(web-ifc-node)
119
- set_target_properties (web-ifc-node PROPERTIES LINK_FLAGS "${DEBUG_FLAG} --bind -flto --define-macro=REAL_T_IS_DOUBLE -s ALLOW_MEMORY_GROWTH=1 -s MAXIMUM_MEMORY=4GB -sSTACK_SIZE=5MB -s EXPORT_NAME=WebIFCWasm -s MODULARIZE=1 " )
120
-
121
- #multi-treaded versions
122
- add_executable (web-ifc-mt ${WebIfcManager} ${WebIfcSchema} ${WebIfcParsing} ${WebIfcAPI} ${WebIfcUtility} ${WebIfcGeometry} )
123
- param_setter(web-ifc-mt)
124
- target_compile_options (web-ifc-mt PUBLIC "-pthread" )
125
- set_target_properties (web-ifc-mt PROPERTIES LINK_FLAGS "${DEBUG_FLAG} -pthread -s PTHREAD_POOL_SIZE=navigator.hardwareConcurrency --bind -flto --define-macro=REAL_T_IS_DOUBLE -sSTACK_SIZE=5MB -s ALLOW_MEMORY_GROWTH=1 -s MAXIMUM_MEMORY=4GB -s EXPORT_NAME=WebIFCWasm -s MODULARIZE=1 -s ENVIRONMENT=web,worker" )
126
- endif ()
111
+ if (MSVC )
112
+ set (CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>" )
113
+ endif ()
127
114
128
- if (NOT EMSCRIPTEN)
129
-
130
- if (MSVC )
131
- set (CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>" )
132
- endif ()
133
-
134
- #build parameters for web-ifc-test
135
- add_executable (web-ifc-test ${WebIfcManager} ${WebIfcSchema} ${WebIfcParsing} ${WebIfcUtility} ${WebIfcGeometry} ${WebIfcTestSourceFiles} )
136
- param_setter(web-ifc-test )
137
- target_include_directories (web-ifc-test PUBLIC ${tinycpptest_SOURCE_DIR} /Sources )
138
-
139
- add_test (web-ifc-test web-ifc-test )
140
- set_tests_properties (web-ifc-test PROPERTIES LABELS "web-ifc" )
141
-
142
- #build parameters for web-ifc in testing environment
143
- add_executable (web-ifc ${WebIfcManager} ${WebIfcSchema} ${WebIfcParsing} ${WebIfcUtility} ${WebIfcGeometry} ${WebIfcTestingMain} "./test/io_helpers.cpp" )
144
- param_setter(web-ifc)
145
- target_include_directories (web-ifc PUBLIC ${tinycpptest_SOURCE_DIR} /Sources )
146
- #comment these to prevent debug files being generated
147
- if (NOT RELEASE)
148
- target_compile_options (web-ifc PUBLIC "-DCSG_DEBUG_OUTPUT" )
149
- target_compile_options (web-ifc PUBLIC "-DDEBUG_DUMP_SVG" )
150
- endif ()
151
-
152
- add_executable (ifc-geom-server ${WebIfcManager} ${WebIfcSchema} ${WebIfcParsing} ${WebIfcUtility} ${WebIfcGeometry} ${IfcGeomServerMain} "./test/io_helpers.cpp" )
153
- param_setter(ifc-geom-server)
154
-
155
- endif ()
115
+ add_executable (ifc-geom-server ${WebIfcManager} ${WebIfcSchema} ${WebIfcParsing} ${WebIfcUtility} ${WebIfcGeometry} ${IfcGeomServerMain} "./test/io_helpers.cpp" )
116
+ param_setter(ifc-geom-server)
0 commit comments