Mercurial > retraceit > retraceit
annotate src/CMakeLists.txt @ 103:43af5fccf61e
Fix possible double free on exit
author | Andre Heinecke <andre.heinecke@intevation.de> |
---|---|
date | Fri, 18 Nov 2016 12:47:21 +0100 |
parents | 2b916977c260 |
children | a3f060eb199f |
rev | line source |
---|---|
25
64a51a42c01f
Assign copyright correctly
Andre Heinecke <andre.heinecke@intevation.de>
parents:
9
diff
changeset
|
1 # Copyright (C) 2015 by ETH Zürich |
27
5bd14af5bce5
Fix copyright header in CMake files (wrong comment character)
Andre Heinecke <andre.heinecke@intevation.de>
parents:
25
diff
changeset
|
2 # Software engineering by Intevation GmbH |
0
147b08bc7d64
Initial commit of a basic Application framework.
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff
changeset
|
3 # |
147b08bc7d64
Initial commit of a basic Application framework.
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff
changeset
|
4 # This file is Free Software under the GNU GPL (v>=2) |
147b08bc7d64
Initial commit of a basic Application framework.
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff
changeset
|
5 # and comes with ABSOLUTELY NO WARRANTY! |
147b08bc7d64
Initial commit of a basic Application framework.
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff
changeset
|
6 # See LICENSE.txt for details. |
147b08bc7d64
Initial commit of a basic Application framework.
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff
changeset
|
7 |
147b08bc7d64
Initial commit of a basic Application framework.
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff
changeset
|
8 include_directories(${Qt5Widgets_INCLUDE_DIRS}) |
147b08bc7d64
Initial commit of a basic Application framework.
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff
changeset
|
9 |
147b08bc7d64
Initial commit of a basic Application framework.
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff
changeset
|
10 include_directories(${CMAKE_CURRENT_SOURCE_DIR}) |
1
7a2637c3eb83
Add csv parser from libqxt
Andre Heinecke <andre.heinecke@intevation.de>
parents:
0
diff
changeset
|
11 include_directories(libqxt) |
0
147b08bc7d64
Initial commit of a basic Application framework.
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff
changeset
|
12 |
147b08bc7d64
Initial commit of a basic Application framework.
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff
changeset
|
13 add_definitions(${Qt5Widgets_DEFINITIONS}) |
147b08bc7d64
Initial commit of a basic Application framework.
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff
changeset
|
14 |
147b08bc7d64
Initial commit of a basic Application framework.
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff
changeset
|
15 set(APPLICATION_SRC |
147b08bc7d64
Initial commit of a basic Application framework.
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff
changeset
|
16 main.cpp |
147b08bc7d64
Initial commit of a basic Application framework.
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff
changeset
|
17 mainwindow.cpp |
147b08bc7d64
Initial commit of a basic Application framework.
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff
changeset
|
18 strhelp.c |
147b08bc7d64
Initial commit of a basic Application framework.
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff
changeset
|
19 util_win.c |
147b08bc7d64
Initial commit of a basic Application framework.
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff
changeset
|
20 util_linux.c |
2
97d2c8869c39
First prototype implementation of table view and player
Andre Heinecke <andre.heinecke@intevation.de>
parents:
1
diff
changeset
|
21 metadataview.cpp |
97d2c8869c39
First prototype implementation of table view and player
Andre Heinecke <andre.heinecke@intevation.de>
parents:
1
diff
changeset
|
22 pngplayer.cpp |
3
248d5d1cdb38
Add functionalty to control buttons and make picture resizable
Andre Heinecke <andre.heinecke@intevation.de>
parents:
2
diff
changeset
|
23 imagelabel.cpp |
4
e4748da7140b
Add filter functionalty to metadataview
Andre Heinecke <andre.heinecke@intevation.de>
parents:
3
diff
changeset
|
24 filterwidget.cpp |
9
e3c8f61e45a9
Implement folderselection dialogs
Andre Heinecke <andre.heinecke@intevation.de>
parents:
4
diff
changeset
|
25 folderselectdialog.cpp |
88
3916cb3c9105
Add new FilterSort model that allows to include empty values
Andre Heinecke <andre.heinecke@intevation.de>
parents:
77
diff
changeset
|
26 includeemptysortmodel.cpp |
46
97c14310cc1a
Add icon and more details about licenses
Andre Heinecke <andre.heinecke@intevation.de>
parents:
27
diff
changeset
|
27 icons/icon.rc |
0
147b08bc7d64
Initial commit of a basic Application framework.
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff
changeset
|
28 ) |
147b08bc7d64
Initial commit of a basic Application framework.
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff
changeset
|
29 |
147b08bc7d64
Initial commit of a basic Application framework.
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff
changeset
|
30 find_package(Qt5LinguistTools) |
57
2cd76e6c0fcf
Add MacOS build support
Andre Heinecke <andre.heinecke@intevation.de>
parents:
50
diff
changeset
|
31 |
2cd76e6c0fcf
Add MacOS build support
Andre Heinecke <andre.heinecke@intevation.de>
parents:
50
diff
changeset
|
32 # See: https://bugreports.qt-project.org/browse/QTBUG-35918 |
2cd76e6c0fcf
Add MacOS build support
Andre Heinecke <andre.heinecke@intevation.de>
parents:
50
diff
changeset
|
33 # extra static libs should be automatically managed but they |
2cd76e6c0fcf
Add MacOS build support
Andre Heinecke <andre.heinecke@intevation.de>
parents:
50
diff
changeset
|
34 # are not so we make this here explicitly neccessary. |
2cd76e6c0fcf
Add MacOS build support
Andre Heinecke <andre.heinecke@intevation.de>
parents:
50
diff
changeset
|
35 # The list is taken from the libs/*.prl file |
2cd76e6c0fcf
Add MacOS build support
Andre Heinecke <andre.heinecke@intevation.de>
parents:
50
diff
changeset
|
36 if(APPLE) |
2cd76e6c0fcf
Add MacOS build support
Andre Heinecke <andre.heinecke@intevation.de>
parents:
50
diff
changeset
|
37 set(GUI_TYPE MACOSX_BUNDLE) |
2cd76e6c0fcf
Add MacOS build support
Andre Heinecke <andre.heinecke@intevation.de>
parents:
50
diff
changeset
|
38 include_directories ( /Developer/Headers/FlatCarbon ) |
2cd76e6c0fcf
Add MacOS build support
Andre Heinecke <andre.heinecke@intevation.de>
parents:
50
diff
changeset
|
39 find_library(COCOA_LIBRARAY Cocoa) |
2cd76e6c0fcf
Add MacOS build support
Andre Heinecke <andre.heinecke@intevation.de>
parents:
50
diff
changeset
|
40 find_library(CARBON_LIBRARY Carbon) |
2cd76e6c0fcf
Add MacOS build support
Andre Heinecke <andre.heinecke@intevation.de>
parents:
50
diff
changeset
|
41 find_library(APP_SERVICES_LIBRARY ApplicationServices) |
2cd76e6c0fcf
Add MacOS build support
Andre Heinecke <andre.heinecke@intevation.de>
parents:
50
diff
changeset
|
42 find_library(FOUNDATION_LIBRARAY Foundation) |
2cd76e6c0fcf
Add MacOS build support
Andre Heinecke <andre.heinecke@intevation.de>
parents:
50
diff
changeset
|
43 find_library(CORE_SERVICES_LIBRARAY CoreServices) |
2cd76e6c0fcf
Add MacOS build support
Andre Heinecke <andre.heinecke@intevation.de>
parents:
50
diff
changeset
|
44 find_library(CORE_FOUNDATION_LIBRARY CoreFoundation) |
2cd76e6c0fcf
Add MacOS build support
Andre Heinecke <andre.heinecke@intevation.de>
parents:
50
diff
changeset
|
45 find_library(OPENGL_LIBRARAY OpenGL) |
2cd76e6c0fcf
Add MacOS build support
Andre Heinecke <andre.heinecke@intevation.de>
parents:
50
diff
changeset
|
46 find_library(AGL_LIBRARY AGL) |
2cd76e6c0fcf
Add MacOS build support
Andre Heinecke <andre.heinecke@intevation.de>
parents:
50
diff
changeset
|
47 find_library(IOKIT_LIBRARY IOKit) |
0
147b08bc7d64
Initial commit of a basic Application framework.
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff
changeset
|
48 |
147b08bc7d64
Initial commit of a basic Application framework.
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff
changeset
|
49 get_target_property(_loc Qt5::Widgets LOCATION) |
147b08bc7d64
Initial commit of a basic Application framework.
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff
changeset
|
50 get_filename_component(_qtpath ${_loc} PATH) |
147b08bc7d64
Initial commit of a basic Application framework.
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff
changeset
|
51 |
57
2cd76e6c0fcf
Add MacOS build support
Andre Heinecke <andre.heinecke@intevation.de>
parents:
50
diff
changeset
|
52 set(MAC_EXTRA_LIBS |
0
147b08bc7d64
Initial commit of a basic Application framework.
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff
changeset
|
53 -L${_qtpath} |
57
2cd76e6c0fcf
Add MacOS build support
Andre Heinecke <andre.heinecke@intevation.de>
parents:
50
diff
changeset
|
54 -lQt5Gui -lQt5Core -lQt5PlatformSupport |
2cd76e6c0fcf
Add MacOS build support
Andre Heinecke <andre.heinecke@intevation.de>
parents:
50
diff
changeset
|
55 -lQt5PrintSupport |
2cd76e6c0fcf
Add MacOS build support
Andre Heinecke <andre.heinecke@intevation.de>
parents:
50
diff
changeset
|
56 -lz -lm ${APP_SERVICES_LIBRARY} |
2cd76e6c0fcf
Add MacOS build support
Andre Heinecke <andre.heinecke@intevation.de>
parents:
50
diff
changeset
|
57 ${FOUNDATION_LIBRARAY} |
2cd76e6c0fcf
Add MacOS build support
Andre Heinecke <andre.heinecke@intevation.de>
parents:
50
diff
changeset
|
58 ${CORE_FOUNDATION_LIBRARY} |
2cd76e6c0fcf
Add MacOS build support
Andre Heinecke <andre.heinecke@intevation.de>
parents:
50
diff
changeset
|
59 ${COCOA_LIBRARAY} |
2cd76e6c0fcf
Add MacOS build support
Andre Heinecke <andre.heinecke@intevation.de>
parents:
50
diff
changeset
|
60 ${CORE_SERVICES_LIBRARAY} |
2cd76e6c0fcf
Add MacOS build support
Andre Heinecke <andre.heinecke@intevation.de>
parents:
50
diff
changeset
|
61 ${OPENGL_LIBRARAY} |
2cd76e6c0fcf
Add MacOS build support
Andre Heinecke <andre.heinecke@intevation.de>
parents:
50
diff
changeset
|
62 ${AGL_LIBRARY} |
2cd76e6c0fcf
Add MacOS build support
Andre Heinecke <andre.heinecke@intevation.de>
parents:
50
diff
changeset
|
63 ${CARBON_LIBRARY} |
2cd76e6c0fcf
Add MacOS build support
Andre Heinecke <andre.heinecke@intevation.de>
parents:
50
diff
changeset
|
64 ${IOKIT_LIBRARY} |
2cd76e6c0fcf
Add MacOS build support
Andre Heinecke <andre.heinecke@intevation.de>
parents:
50
diff
changeset
|
65 -lqtharfbuzzng -lz -lcups) |
2cd76e6c0fcf
Add MacOS build support
Andre Heinecke <andre.heinecke@intevation.de>
parents:
50
diff
changeset
|
66 set(EXTRA_STATIC_LIBS Qt5::QCocoaIntegrationPlugin ${MAC_EXTRA_LIBS} ) |
0
147b08bc7d64
Initial commit of a basic Application framework.
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff
changeset
|
67 |
60
af8f1792d48d
Add App bundle installation
Andre Heinecke <andre.heinecke@intevation.de>
parents:
57
diff
changeset
|
68 SET(MACOSX_BUNDLE_ICON_FILE icon.icns) |
af8f1792d48d
Add App bundle installation
Andre Heinecke <andre.heinecke@intevation.de>
parents:
57
diff
changeset
|
69 SET_SOURCE_FILES_PROPERTIES(${CMAKE_CURRENT_SOURCE_DIR}/icons/icon.icns PROPERTIES MACOSX_PACKAGE_LOCATION Resources) |
af8f1792d48d
Add App bundle installation
Andre Heinecke <andre.heinecke@intevation.de>
parents:
57
diff
changeset
|
70 SET(APPLICATION_SRC ${APPLICATION_SRC} ${CMAKE_CURRENT_SOURCE_DIR}/icons/icon.icns) |
af8f1792d48d
Add App bundle installation
Andre Heinecke <andre.heinecke@intevation.de>
parents:
57
diff
changeset
|
71 set (_add_executable_params MACOSX_BUNDLE) |
af8f1792d48d
Add App bundle installation
Andre Heinecke <andre.heinecke@intevation.de>
parents:
57
diff
changeset
|
72 SET(APPS "\${CMAKE_INSTALL_PREFIX}/${PROJECT_NAME}.app") |
64
1129d49b9baf
Add bundle meta information
Andre Heinecke <andre.heinecke@intevation.de>
parents:
60
diff
changeset
|
73 SET(MACOS_INFO_STRING "Tool to view recorded login sessions.") |
1129d49b9baf
Add bundle meta information
Andre Heinecke <andre.heinecke@intevation.de>
parents:
60
diff
changeset
|
74 SET(MACOSX_BUNDLE_NAME "RetraceIT") |
1129d49b9baf
Add bundle meta information
Andre Heinecke <andre.heinecke@intevation.de>
parents:
60
diff
changeset
|
75 SET(MACOSX_BUNDLE_GUI_IDENTIFIER "RetraceIT") |
1129d49b9baf
Add bundle meta information
Andre Heinecke <andre.heinecke@intevation.de>
parents:
60
diff
changeset
|
76 SET(MACOSX_BUNDLE_BUNDLE_VERSION ${PROJECT_VERSION}) |
1129d49b9baf
Add bundle meta information
Andre Heinecke <andre.heinecke@intevation.de>
parents:
60
diff
changeset
|
77 SET(MACOSX_BUNDLE_BUNDLE_VERSION_STRING "${PROJECT_VERSION}") |
1129d49b9baf
Add bundle meta information
Andre Heinecke <andre.heinecke@intevation.de>
parents:
60
diff
changeset
|
78 SET(MACOSX_BUNDLE_LONG_VERSION_STRING "${PROJECT_VERSION}") |
75
16ae3e7338b3
Fix Macos short version string bundle information
Andre Heinecke <andre.heinecke@intevation.de>
parents:
68
diff
changeset
|
79 SET(MACOSX_BUNDLE_SHORT_VERSION_STRING "${PROJECT_VERSION}") |
64
1129d49b9baf
Add bundle meta information
Andre Heinecke <andre.heinecke@intevation.de>
parents:
60
diff
changeset
|
80 set(MACOSX_BUNDLE_COPYRIGHT "Copyright (C) 2015 by ETH Zürich\nSoftware engineering by Intevation GmbH") |
1129d49b9baf
Add bundle meta information
Andre Heinecke <andre.heinecke@intevation.de>
parents:
60
diff
changeset
|
81 |
0
147b08bc7d64
Initial commit of a basic Application framework.
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff
changeset
|
82 elseif(WIN32) |
147b08bc7d64
Initial commit of a basic Application framework.
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff
changeset
|
83 set (_add_executable_params WIN32) |
147b08bc7d64
Initial commit of a basic Application framework.
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff
changeset
|
84 |
147b08bc7d64
Initial commit of a basic Application framework.
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff
changeset
|
85 get_target_property(_loc Qt5::Widgets LOCATION) |
147b08bc7d64
Initial commit of a basic Application framework.
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff
changeset
|
86 get_filename_component(_qtpath ${_loc} PATH) |
147b08bc7d64
Initial commit of a basic Application framework.
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff
changeset
|
87 set(WINDOWS_EXTRA_LIBS |
147b08bc7d64
Initial commit of a basic Application framework.
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff
changeset
|
88 -L${_qtpath} |
147b08bc7d64
Initial commit of a basic Application framework.
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff
changeset
|
89 -lwinspool -lshlwapi |
147b08bc7d64
Initial commit of a basic Application framework.
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff
changeset
|
90 -lQt5PlatformSupport -lQt5Gui -lcomdlg32 -loleaut32 -limm32 -lwinmm |
147b08bc7d64
Initial commit of a basic Application framework.
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff
changeset
|
91 -lglu32 -lopengl32 -lgdi32 -lQt5Core -lole32 -lmstask -luuid -lws2_32 |
98
2b916977c260
Update link for updated qt
Andre Heinecke <andre.heinecke@intevation.de>
parents:
88
diff
changeset
|
92 -ladvapi32 -lshell32 -luser32 -lkernel32 -lqtfreetype -lqtharfbuzzng -lpcre16) |
0
147b08bc7d64
Initial commit of a basic Application framework.
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff
changeset
|
93 |
147b08bc7d64
Initial commit of a basic Application framework.
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff
changeset
|
94 set(EXTRA_STATIC_LIBS Qt5::QWindowsIntegrationPlugin ${WINDOWS_EXTRA_LIBS}) |
147b08bc7d64
Initial commit of a basic Application framework.
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff
changeset
|
95 endif() |
147b08bc7d64
Initial commit of a basic Application framework.
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff
changeset
|
96 |
147b08bc7d64
Initial commit of a basic Application framework.
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff
changeset
|
97 set(QT_RESOURCES |
50
07744e276579
Add icon also for non Windows systems
Andre Heinecke <andre.heinecke@intevation.de>
parents:
46
diff
changeset
|
98 fonts.qrc |
07744e276579
Add icon also for non Windows systems
Andre Heinecke <andre.heinecke@intevation.de>
parents:
46
diff
changeset
|
99 icons/icons.qrc |
0
147b08bc7d64
Initial commit of a basic Application framework.
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff
changeset
|
100 ) |
147b08bc7d64
Initial commit of a basic Application framework.
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff
changeset
|
101 |
147b08bc7d64
Initial commit of a basic Application framework.
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff
changeset
|
102 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${Qt5Widgets_EXECUTABLE_COMPILE_FLAGS}") |
147b08bc7d64
Initial commit of a basic Application framework.
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff
changeset
|
103 qt5_add_resources(APPLICATION_SRC ${QT_RESOURCES}) |
147b08bc7d64
Initial commit of a basic Application framework.
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff
changeset
|
104 |
147b08bc7d64
Initial commit of a basic Application framework.
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff
changeset
|
105 if(Qt5LinguistTools_FOUND) |
147b08bc7d64
Initial commit of a basic Application framework.
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff
changeset
|
106 |
147b08bc7d64
Initial commit of a basic Application framework.
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff
changeset
|
107 set(FILES_TO_TRANSLATE |
147b08bc7d64
Initial commit of a basic Application framework.
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff
changeset
|
108 ${APPLICATION_SRC} |
147b08bc7d64
Initial commit of a basic Application framework.
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff
changeset
|
109 ) |
147b08bc7d64
Initial commit of a basic Application framework.
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff
changeset
|
110 |
147b08bc7d64
Initial commit of a basic Application framework.
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff
changeset
|
111 # Include translation as a resource |
147b08bc7d64
Initial commit of a basic Application framework.
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff
changeset
|
112 # This works in the source directory to enable the rcc dependencies to be found |
147b08bc7d64
Initial commit of a basic Application framework.
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff
changeset
|
113 # and it also updates the currently available localization. |
147b08bc7d64
Initial commit of a basic Application framework.
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff
changeset
|
114 configure_file(l10n/l10n.qrc.in l10n.qrc) |
147b08bc7d64
Initial commit of a basic Application framework.
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff
changeset
|
115 qt5_add_resources(APPLICATION_SRC ${CMAKE_CURRENT_BINARY_DIR}/l10n.qrc) |
147b08bc7d64
Initial commit of a basic Application framework.
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff
changeset
|
116 qt5_create_translation(TRANSLATION_SRC ${FILES_TO_TRANSLATE} |
147b08bc7d64
Initial commit of a basic Application framework.
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff
changeset
|
117 ${CMAKE_CURRENT_SOURCE_DIR}/l10n/main_de_DE.ts) |
147b08bc7d64
Initial commit of a basic Application framework.
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff
changeset
|
118 endif() |
147b08bc7d64
Initial commit of a basic Application framework.
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff
changeset
|
119 |
1
7a2637c3eb83
Add csv parser from libqxt
Andre Heinecke <andre.heinecke@intevation.de>
parents:
0
diff
changeset
|
120 add_subdirectory(libqxt) |
7a2637c3eb83
Add csv parser from libqxt
Andre Heinecke <andre.heinecke@intevation.de>
parents:
0
diff
changeset
|
121 |
0
147b08bc7d64
Initial commit of a basic Application framework.
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff
changeset
|
122 add_executable(${PROJECT_NAME} |
147b08bc7d64
Initial commit of a basic Application framework.
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff
changeset
|
123 ${_add_executable_params} |
147b08bc7d64
Initial commit of a basic Application framework.
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff
changeset
|
124 # ${IMG_SRC} |
147b08bc7d64
Initial commit of a basic Application framework.
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff
changeset
|
125 ${APPLICATION_SRC} |
147b08bc7d64
Initial commit of a basic Application framework.
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff
changeset
|
126 ${TRANSLATION_SRC} |
147b08bc7d64
Initial commit of a basic Application framework.
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff
changeset
|
127 # ${CMAKE_SOURCE_DIR}/img/icon.rc |
147b08bc7d64
Initial commit of a basic Application framework.
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff
changeset
|
128 ) |
147b08bc7d64
Initial commit of a basic Application framework.
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff
changeset
|
129 |
147b08bc7d64
Initial commit of a basic Application framework.
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff
changeset
|
130 |
147b08bc7d64
Initial commit of a basic Application framework.
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff
changeset
|
131 target_link_libraries(${PROJECT_NAME} |
147b08bc7d64
Initial commit of a basic Application framework.
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff
changeset
|
132 Qt5::Widgets |
1
7a2637c3eb83
Add csv parser from libqxt
Andre Heinecke <andre.heinecke@intevation.de>
parents:
0
diff
changeset
|
133 ${EXTRA_STATIC_LIBS} |
7a2637c3eb83
Add csv parser from libqxt
Andre Heinecke <andre.heinecke@intevation.de>
parents:
0
diff
changeset
|
134 ${PROJECT_NAME}_libqxt |
7a2637c3eb83
Add csv parser from libqxt
Andre Heinecke <andre.heinecke@intevation.de>
parents:
0
diff
changeset
|
135 ) |
0
147b08bc7d64
Initial commit of a basic Application framework.
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff
changeset
|
136 |
147b08bc7d64
Initial commit of a basic Application framework.
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff
changeset
|
137 if (WIN32) |
147b08bc7d64
Initial commit of a basic Application framework.
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff
changeset
|
138 set_target_properties(${PROJECT_NAME} PROPERTIES LINK_FLAGS "-municode") |
147b08bc7d64
Initial commit of a basic Application framework.
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff
changeset
|
139 endif(WIN32) |
147b08bc7d64
Initial commit of a basic Application framework.
Andre Heinecke <andre.heinecke@intevation.de>
parents:
diff
changeset
|
140 |
60
af8f1792d48d
Add App bundle installation
Andre Heinecke <andre.heinecke@intevation.de>
parents:
57
diff
changeset
|
141 install(TARGETS ${PROJECT_NAME} DESTINATION bin BUNDLE DESTINATION .) |
af8f1792d48d
Add App bundle installation
Andre Heinecke <andre.heinecke@intevation.de>
parents:
57
diff
changeset
|
142 |
68
93d3197a883b
Only create application bundle on MacOS
Andre Heinecke <andre.heinecke@intevation.de>
parents:
64
diff
changeset
|
143 if(APPLE) |
93d3197a883b
Only create application bundle on MacOS
Andre Heinecke <andre.heinecke@intevation.de>
parents:
64
diff
changeset
|
144 install(CODE " |
93d3197a883b
Only create application bundle on MacOS
Andre Heinecke <andre.heinecke@intevation.de>
parents:
64
diff
changeset
|
145 include(BundleUtilities) |
93d3197a883b
Only create application bundle on MacOS
Andre Heinecke <andre.heinecke@intevation.de>
parents:
64
diff
changeset
|
146 fixup_bundle(\"${APPS}\" \"\${QTPLUGINS}\" \"${DIRS}\") |
93d3197a883b
Only create application bundle on MacOS
Andre Heinecke <andre.heinecke@intevation.de>
parents:
64
diff
changeset
|
147 " COMPONENT Runtime) |
93d3197a883b
Only create application bundle on MacOS
Andre Heinecke <andre.heinecke@intevation.de>
parents:
64
diff
changeset
|
148 endif() |
60
af8f1792d48d
Add App bundle installation
Andre Heinecke <andre.heinecke@intevation.de>
parents:
57
diff
changeset
|
149 set(CPACK_BINARY_DRAGNDROP ON) |
af8f1792d48d
Add App bundle installation
Andre Heinecke <andre.heinecke@intevation.de>
parents:
57
diff
changeset
|
150 include(CPack) |