From 9b00ac09235d44b2b84d48c3b559033fc4ce07c2 Mon Sep 17 00:00:00 2001 From: Ellen Dekkers Date: Tue, 2 Mar 2010 09:25:21 +0000 Subject: [PATCH] CMakeLists for Synthesizer git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@290 fdac6126-5c0c-442c-9429-916003d36597 --- src/OpenMesh/Apps/CMakeLists.txt | 1 + .../VDProgMesh/Synthesizer/CMakeLists.txt | 44 +++++++++++++++++++ 2 files changed, 45 insertions(+) create mode 100644 src/OpenMesh/Apps/VDProgMesh/Synthesizer/CMakeLists.txt diff --git a/src/OpenMesh/Apps/CMakeLists.txt b/src/OpenMesh/Apps/CMakeLists.txt index 80defaf7..f60e90f9 100644 --- a/src/OpenMesh/Apps/CMakeLists.txt +++ b/src/OpenMesh/Apps/CMakeLists.txt @@ -21,6 +21,7 @@ if (QT4_FOUND AND OPENGL_FOUND AND GLEW_FOUND AND GLUT_FOUND AND NOT BUILD_APPS add_subdirectory (QtViewer) add_subdirectory (Subdivider/SubdividerGui) add_subdirectory (ProgViewer) + add_subdirectory (VDProgMesh/Synthesizer) else () if ( BUILD_APPS STREQUAL OFF ) message ("Building Apps disabled by user.") diff --git a/src/OpenMesh/Apps/VDProgMesh/Synthesizer/CMakeLists.txt b/src/OpenMesh/Apps/VDProgMesh/Synthesizer/CMakeLists.txt new file mode 100644 index 00000000..8eccd3f1 --- /dev/null +++ b/src/OpenMesh/Apps/VDProgMesh/Synthesizer/CMakeLists.txt @@ -0,0 +1,44 @@ +include (ACGCommon) + +include_directories ( + ../../../.. + ${CMAKE_CURRENT_SOURCE_DIR} + ${GLEW_INCLUDE_DIR} + ${GLUT_INCLUDE_DIR} + ${QT_INCLUDE_DIR} +) + +set (targetName Synthesizer) + +# collect all header and source files +acg_append_files (headers "*.hh" .) +acg_append_files (sources "*.cc" .) + +list (APPEND sources "../../QtViewer/QGLViewerWidget.cc") +list (APPEND sources "../../QtViewer/MeshViewerWidgetT.cc") + +list (APPEND headers "../../QtViewer/QGLViewerWidget.hh") +list (APPEND headers "../../QtViewer/MeshViewerWidgetT.hh") + +# remove template cc files from source file list +acg_drop_templates (sources) + +# genereate uic and moc targets +acg_qt4_automoc (moc_targets ${headers}) + +if (WIN32) + acg_add_executable (${targetName} WIN32 ${sources} ${headers} ${moc_targets}) + # link to qtmain library to get WinMain function for a non terminal app + target_link_libraries (${targetName} ${QT_QTMAIN_LIBRARY}) +else () + acg_add_executable (${targetName} ${sources} ${headers} ${moc_targets}) +endif () + +target_link_libraries (${targetName} + OpenMeshCore + OpenMeshTools + ${QT_LIBRARIES} + ${OPENGL_LIBRARIES} + ${GLEW_LIBRARY} + ${GLUT_LIBRARIES} +)