diff ui/CMakeLists.txt @ 558:bde15f68942b

Move main's out of the sources for better testing
author Andre Heinecke <aheinecke@intevation.de>
date Thu, 22 May 2014 10:19:54 +0000
parents bedeb38c244a
children 3af16cbc961d
line wrap: on
line diff
--- a/ui/CMakeLists.txt	Thu May 22 10:19:27 2014 +0000
+++ b/ui/CMakeLists.txt	Thu May 22 10:19:54 2014 +0000
@@ -29,7 +29,6 @@
       "<CMAKE_RC_COMPILER> <FLAGS> <DEFINES> -Ocoff <SOURCE> <OBJECT>")
 
 set(TRUSTBRIDGE_SOURCES
-    ${CMAKE_CURRENT_SOURCE_DIR}/main.cpp
     ${CMAKE_CURRENT_SOURCE_DIR}/mainwindow.cpp
     ${CMAKE_CURRENT_SOURCE_DIR}/helpdialog.cpp
     ${CMAKE_CURRENT_SOURCE_DIR}/certificateitemdelegate.cpp
@@ -42,7 +41,6 @@
 )
 
 set(ADMINSTRATOR_SOURCES
-    ${CMAKE_CURRENT_SOURCE_DIR}/administrator.cpp
     ${CMAKE_CURRENT_SOURCE_DIR}/administratorwindow.cpp
     ${CMAKE_CURRENT_SOURCE_DIR}/certificatetablemodel.cpp
     ${CMAKE_CURRENT_SOURCE_DIR}/certificatetabledelegate.cpp
@@ -128,6 +126,7 @@
       ${CMAKE_CURRENT_SOURCE_DIR}/l10n/administrator_de_DE.ts)
    add_executable(trustbridge-admin
       ${_add_executable_params}
+      ${CMAKE_CURRENT_SOURCE_DIR}/administrator.cpp
       ${ADMINSTRATOR_SOURCES_WITH_RESOURCES}
       ${ADMINISTRATOR_L10N}
       ${ADMINISTRATOR_TRANSLATION}
@@ -139,6 +138,7 @@
       ${CMAKE_CURRENT_SOURCE_DIR}/l10n/trustbridge_de_DE.ts)
    add_executable(trustbridge
       ${_add_executable_params}
+      ${CMAKE_CURRENT_SOURCE_DIR}/main.cpp
       ${TRUSTBRIDGE_SOURCES_WITH_RESOURCES}
       ${TRUSTBRIDGE_L10N}
       ${TRUSTBRIDGE_TRANSLATION}
@@ -148,9 +148,11 @@
    message (STATUS "WARNING: Could not find qt linguist tools. Translation will not be included.")
    add_executable(trustbridge-admin
       ${_add_executable_params}
+      ${CMAKE_CURRENT_SOURCE_DIR}/administrator.cpp
       ${ADMINSTRATOR_SOURCES_WITH_RESOURCES})
    add_executable(trustbridge
       ${_add_executable_params}
+      ${CMAKE_CURRENT_SOURCE_DIR}/main.cpp
       ${TRUSTBRIDGE_SOURCES_WITH_RESOURCES})
 endif()
 

http://wald.intevation.org/projects/trustbridge/