diff --git a/ng/CMakeLists.txt b/ng/CMakeLists.txt index 34977a86..81f18394 100644 --- a/ng/CMakeLists.txt +++ b/ng/CMakeLists.txt @@ -1,6 +1,11 @@ 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) if(USE_GUI) + if(WIN32) + # add icon to netgen executable + enable_language(RC) + set(netgen_sources ${netgen_sources} ../windows/netgen.rc) + endif(WIN32) add_executable(netgen ${netgen_sources}) target_link_libraries( netgen nglib ${ZLIB_LIBRARIES} ${LIBTOGL} ${TK_LIBRARY} ${TCL_LIBRARY} ${JPEG_LIBRARIES} ${FFMPEG_LIBRARIES} ${X11_X11_LIB})