Some cleanup in App cmake files to make them smaller and more readable
This commit is contained in:
@@ -5,16 +5,14 @@ include_directories (
|
||||
${CMAKE_CURRENT_SOURCE_DIR}
|
||||
)
|
||||
|
||||
set (targetName Analyzer)
|
||||
|
||||
# collect all header and source files
|
||||
set (sources
|
||||
./vdpmanalyzer.cc
|
||||
)
|
||||
|
||||
acg_add_executable (${targetName} ${sources})
|
||||
acg_add_executable (Analyzer ${sources})
|
||||
|
||||
target_link_libraries (${targetName}
|
||||
target_link_libraries (Analyzer
|
||||
OpenMeshCore
|
||||
OpenMeshTools
|
||||
)
|
||||
|
||||
@@ -7,8 +7,6 @@ include_directories (
|
||||
${QT_INCLUDE_DIR}
|
||||
)
|
||||
|
||||
set (targetName Synthesizer)
|
||||
|
||||
# collect all header and source files
|
||||
acg_append_files (headers "*.hh" .)
|
||||
acg_append_files (sources "*.cc" .)
|
||||
@@ -23,14 +21,14 @@ list (APPEND headers "../../QtViewer/MeshViewerWidgetT.hh")
|
||||
acg_drop_templates (sources)
|
||||
|
||||
if (WIN32)
|
||||
acg_add_executable (${targetName} WIN32 ${sources} ${headers})
|
||||
acg_add_executable (Synthesizer WIN32 ${sources} ${headers})
|
||||
# link to qtmain library to get WinMain function for a non terminal app
|
||||
target_link_libraries (${targetName} ${QT_QTMAIN_LIBRARY})
|
||||
target_link_libraries (Synthesizer ${QT_QTMAIN_LIBRARY})
|
||||
else ()
|
||||
acg_add_executable (${targetName} ${sources} ${headers})
|
||||
acg_add_executable (Synthesizer ${sources} ${headers})
|
||||
endif ()
|
||||
|
||||
target_link_libraries (${targetName}
|
||||
target_link_libraries (Synthesizer
|
||||
OpenMeshCore
|
||||
OpenMeshTools
|
||||
${QT_LIBRARIES}
|
||||
|
||||
@@ -5,16 +5,14 @@ include_directories (
|
||||
${CMAKE_CURRENT_SOURCE_DIR}
|
||||
)
|
||||
|
||||
set (targetName mkbalancedpm)
|
||||
|
||||
# collect all header and source files
|
||||
set (sources
|
||||
./mkbalancedpm.cc
|
||||
)
|
||||
|
||||
acg_add_executable (${targetName} ${sources})
|
||||
acg_add_executable (mkbalancedpm ${sources})
|
||||
|
||||
target_link_libraries (${targetName}
|
||||
target_link_libraries (mkbalancedpm
|
||||
OpenMeshCore
|
||||
OpenMeshTools
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user