2015-10-19 13:08:30 +05:00
|
|
|
set(netgen_sources demoview.cpp ngappinit.cpp onetcl.cpp parallelfunc.cpp ngpkg.cpp ../libsrc/stlgeom/stlpkg.cpp ../libsrc/visualization/visualpkg.cpp ../libsrc/csg/csgpkg.cpp ../libsrc/geom2d/geom2dpkg.cpp)
|
2015-03-06 18:59:14 +05:00
|
|
|
|
|
|
|
if(USE_GUI)
|
2015-10-21 20:50:00 +05:00
|
|
|
if(WIN32)
|
|
|
|
# add icon to netgen executable
|
|
|
|
enable_language(RC)
|
|
|
|
set(netgen_sources ${netgen_sources} ../windows/netgen.rc)
|
|
|
|
endif(WIN32)
|
2015-03-06 18:59:14 +05:00
|
|
|
|
|
|
|
add_executable(netgen ${netgen_sources})
|
2015-11-02 17:23:20 +05:00
|
|
|
target_link_libraries( netgen nglib ${ZLIB_LIBRARIES} ${LIBTOGL} ${TK_LIBRARY} ${TCL_LIBRARY} ${JPEG_LIBRARIES} ${FFMPEG_LIBRARIES} ${X11_X11_LIB})
|
2015-10-19 13:08:30 +05:00
|
|
|
if(NOT WIN32)
|
|
|
|
target_link_libraries( netgen mesh stlvis stl geom2dvis interface geom2d csg stl visual csgvis )
|
|
|
|
endif(NOT WIN32)
|
2015-03-06 18:59:14 +05:00
|
|
|
|
|
|
|
install(TARGETS netgen ${ng_install_dir})
|
2016-02-08 19:53:16 +05:00
|
|
|
if(APPLE)
|
2016-02-23 17:08:09 +05:00
|
|
|
set_target_properties(netgen PROPERTIES OUTPUT_NAME netgen)
|
2016-02-08 19:53:16 +05:00
|
|
|
endif(APPLE)
|
2015-03-06 18:59:14 +05:00
|
|
|
|
|
|
|
endif(USE_GUI)
|
|
|
|
|
|
|
|
if(USE_PYTHON)
|
2015-10-20 14:09:29 +05:00
|
|
|
add_library(ngpy SHARED netgenpy.cpp)
|
|
|
|
target_link_libraries( ngpy nglib )
|
2015-03-06 18:59:14 +05:00
|
|
|
if(APPLE)
|
2015-10-20 14:09:29 +05:00
|
|
|
set_target_properties( ngpy PROPERTIES SUFFIX ".so")
|
2015-03-06 18:59:14 +05:00
|
|
|
elseif(WIN32)
|
2015-10-20 14:09:29 +05:00
|
|
|
set_target_properties( ngpy PROPERTIES SUFFIX ".pyd")
|
2015-10-20 14:15:01 +05:00
|
|
|
set_target_properties( ngpy PROPERTIES OUTPUT_NAME "libngpy")
|
2015-03-06 18:59:14 +05:00
|
|
|
endif()
|
2015-10-20 14:09:29 +05:00
|
|
|
install(TARGETS ngpy ${ng_install_dir})
|
2015-03-06 18:59:14 +05:00
|
|
|
endif(USE_PYTHON)
|
|
|
|
|
|
|
|
install(FILES
|
|
|
|
dialog.tcl menustat.tcl ngicon.tcl ng.tcl
|
2016-02-08 19:53:16 +05:00
|
|
|
ngvisual.tcl sockets.tcl nghelp.tcl ngshell.tcl
|
2015-03-06 18:59:14 +05:00
|
|
|
ngtesting.tcl parameters.tcl variables.tcl csgeom.tcl stlgeom.tcl
|
|
|
|
occgeom.tcl acisgeom.tcl netgen.ocf
|
2016-02-08 19:53:16 +05:00
|
|
|
DESTINATION ${ng_install_dir_bin} COMPONENT netgen)
|
|
|
|
|
2016-03-07 22:52:51 +05:00
|
|
|
add_subdirectory(Togl2.1)
|
|
|
|
install(FILES drawing.tcl DESTINATION ${ng_install_dir_bin} COMPONENT netgen)
|
2015-03-06 18:59:14 +05:00
|
|
|
|