Some cleanup in App cmake files to make them smaller and more readable

This commit is contained in:
Jan Möbius
2018-12-14 11:59:42 +01:00
parent 92b580a9ec
commit 06061b2d5b
12 changed files with 32 additions and 73 deletions

View File

@@ -7,8 +7,6 @@ include_directories (
${QT_INCLUDE_DIR}
)
set (targetName SubdividerGui)
# source code directories
set (directories
../../QtViewer
@@ -29,14 +27,14 @@ set (sources
acg_drop_templates (sources)
if (WIN32)
acg_add_executable (${targetName} WIN32 ${sources} ${headers})
acg_add_executable (SubdividerGui 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 (SubdividerGui ${QT_QTMAIN_LIBRARY})
else ()
acg_add_executable (${targetName} ${sources} ${headers})
acg_add_executable (SubdividerGui ${sources} ${headers})
endif ()
target_link_libraries (${targetName}
target_link_libraries (SubdividerGui
OpenMeshCore
OpenMeshTools
${QT_LIBRARIES}

View File

@@ -5,16 +5,14 @@ include_directories (
${CMAKE_CURRENT_SOURCE_DIR}
)
set (targetName commandlineAdaptiveSubdivider)
# collect all header and source files
set (sources
../adaptive_subdivider.cc
)
acg_add_executable (${targetName} ${sources})
acg_add_executable (commandlineAdaptiveSubdivider ${sources})
target_link_libraries (${targetName}
target_link_libraries (commandlineAdaptiveSubdivider
OpenMeshCore
OpenMeshTools
)

View File

@@ -5,16 +5,14 @@ include_directories (
${CMAKE_CURRENT_SOURCE_DIR}
)
set (targetName commandlineSubdivider)
# collect all header and source files
set (sources
../subdivider.cc
)
acg_add_executable (${targetName} ${sources})
acg_add_executable (commandlineSubdivider ${sources})
target_link_libraries (${targetName}
target_link_libraries (commandlineSubdivider
OpenMeshCore
OpenMeshTools
)