Some cleanup in App cmake files to make them smaller and more readable
This commit is contained in:
@@ -7,9 +7,6 @@ include_directories (
|
||||
${QT_INCLUDE_DIR}
|
||||
)
|
||||
|
||||
|
||||
set (targetName DecimaterGui)
|
||||
|
||||
# source code directories
|
||||
set (directories
|
||||
../../QtViewer
|
||||
@@ -30,14 +27,14 @@ set (sources
|
||||
acg_drop_templates (sources)
|
||||
|
||||
if (WIN32)
|
||||
acg_add_executable (${targetName} WIN32 ${sources} ${headers})
|
||||
acg_add_executable (DecimaterGui 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 (DecimaterGui ${QT_QTMAIN_LIBRARY})
|
||||
else ()
|
||||
acg_add_executable (${targetName} ${sources} ${headers} )
|
||||
acg_add_executable (DecimaterGui ${sources} ${headers} )
|
||||
endif ()
|
||||
|
||||
target_link_libraries (${targetName}
|
||||
target_link_libraries (DecimaterGui
|
||||
OpenMeshCore
|
||||
OpenMeshTools
|
||||
${QT_LIBRARIES}
|
||||
|
||||
Reference in New Issue
Block a user