Fix non-GUI build on Windows

This commit is contained in:
Matthias Hochsteger 2017-07-21 05:24:49 -07:00
parent 3082f82498
commit 5646a725dd

View File

@ -3,9 +3,7 @@ add_definitions(-DNGLIB_EXPORTS)
if(WIN32)
set(nglib_objects
$<TARGET_OBJECTS:mesh>
$<TARGET_OBJECTS:stlvis>
$<TARGET_OBJECTS:stl>
$<TARGET_OBJECTS:geom2dvis>
$<TARGET_OBJECTS:interface>
$<TARGET_OBJECTS:geom2d>
$<TARGET_OBJECTS:csg>
@ -15,9 +13,15 @@ if(WIN32)
$<TARGET_OBJECTS:gprim>
$<TARGET_OBJECTS:visual>
$<TARGET_OBJECTS:csgvis>
$<TARGET_OBJECTS:occ>
)
if(USE_GUI)
set(nglib_objects ${nglib_objects}
$<TARGET_OBJECTS:stlvis>
$<TARGET_OBJECTS:geom2dvis>
$<TARGET_OBJECTS:csgvis>
)
endif(USE_GUI)
endif(WIN32)
add_library(nglib SHARED nglib.cpp ${nglib_objects})