Mercurial > trustbridge
annotate CMakeLists.txt @ 25:92108a2120f1
Move certificatelist to common. Add cinst directory
author | Andre Heinecke <aheinecke@intevation.de> |
---|---|
date | Mon, 10 Mar 2014 14:15:15 +0000 |
parents | de67047ca229 |
children | cbd57d767dfa |
rev | line source |
---|---|
0
cb0cde2c5eb9
Initial commit. Basically a Hello World with a Tray Icon.
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
1 cmake_minimum_required(VERSION 2.8.8) |
cb0cde2c5eb9
Initial commit. Basically a Hello World with a Tray Icon.
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
2 project(m13) |
cb0cde2c5eb9
Initial commit. Basically a Hello World with a Tray Icon.
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
3 |
24
de67047ca229
Add documentation generation
Andre Heinecke <aheinecke@intevation.de>
parents:
22
diff
changeset
|
4 include(CTest) |
de67047ca229
Add documentation generation
Andre Heinecke <aheinecke@intevation.de>
parents:
22
diff
changeset
|
5 |
0
cb0cde2c5eb9
Initial commit. Basically a Hello World with a Tray Icon.
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
6 set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/") |
cb0cde2c5eb9
Initial commit. Basically a Hello World with a Tray Icon.
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
7 |
cb0cde2c5eb9
Initial commit. Basically a Hello World with a Tray Icon.
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
8 # Use cmake's automoc and make sure the generated files are included |
cb0cde2c5eb9
Initial commit. Basically a Hello World with a Tray Icon.
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
9 set(CMAKE_AUTOMOC ON) |
cb0cde2c5eb9
Initial commit. Basically a Hello World with a Tray Icon.
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
10 set(CMAKE_INCLUDE_CURRENT_DIR ON) |
cb0cde2c5eb9
Initial commit. Basically a Hello World with a Tray Icon.
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
11 |
7
992c0ec57660
Add unit tests make CertificateList work.
Andre Heinecke <aheinecke@intevation.de>
parents:
4
diff
changeset
|
12 # Default to debug build |
992c0ec57660
Add unit tests make CertificateList work.
Andre Heinecke <aheinecke@intevation.de>
parents:
4
diff
changeset
|
13 if (NOT CMAKE_BUILD_TYPE) |
992c0ec57660
Add unit tests make CertificateList work.
Andre Heinecke <aheinecke@intevation.de>
parents:
4
diff
changeset
|
14 set (CMAKE_BUILD_TYPE Debug) |
992c0ec57660
Add unit tests make CertificateList work.
Andre Heinecke <aheinecke@intevation.de>
parents:
4
diff
changeset
|
15 endif (NOT CMAKE_BUILD_TYPE) |
992c0ec57660
Add unit tests make CertificateList work.
Andre Heinecke <aheinecke@intevation.de>
parents:
4
diff
changeset
|
16 |
0
cb0cde2c5eb9
Initial commit. Basically a Hello World with a Tray Icon.
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
17 find_package(Qt5Widgets REQUIRED) |
cb0cde2c5eb9
Initial commit. Basically a Hello World with a Tray Icon.
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
18 |
cb0cde2c5eb9
Initial commit. Basically a Hello World with a Tray Icon.
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
19 include_directories(${Qt5Widgets_INCLUDE_DIRS}) |
cb0cde2c5eb9
Initial commit. Basically a Hello World with a Tray Icon.
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
20 add_definitions(${Qt5Widgets_DEFINITIONS}) |
cb0cde2c5eb9
Initial commit. Basically a Hello World with a Tray Icon.
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
21 |
21
dc1e1e9e62ce
Add certificate class and use it
Andre Heinecke <aheinecke@intevation.de>
parents:
18
diff
changeset
|
22 set(CERTIFICATELIST_SOURCES |
dc1e1e9e62ce
Add certificate class and use it
Andre Heinecke <aheinecke@intevation.de>
parents:
18
diff
changeset
|
23 ${CMAKE_SOURCE_DIR}/ui/certificatelist.cpp |
dc1e1e9e62ce
Add certificate class and use it
Andre Heinecke <aheinecke@intevation.de>
parents:
18
diff
changeset
|
24 ${CMAKE_SOURCE_DIR}/ui/certificate.cpp |
dc1e1e9e62ce
Add certificate class and use it
Andre Heinecke <aheinecke@intevation.de>
parents:
18
diff
changeset
|
25 ${CMAKE_SOURCE_DIR}/ui/certificate_win.cpp |
dc1e1e9e62ce
Add certificate class and use it
Andre Heinecke <aheinecke@intevation.de>
parents:
18
diff
changeset
|
26 ${CMAKE_SOURCE_DIR}/ui/certificate_linux.cpp |
22
bc302bbceaf5
Move listutil again
Andre Heinecke <aheinecke@intevation.de>
parents:
21
diff
changeset
|
27 ${CMAKE_SOURCE_DIR}/common/listutil.c |
21
dc1e1e9e62ce
Add certificate class and use it
Andre Heinecke <aheinecke@intevation.de>
parents:
18
diff
changeset
|
28 ) |
dc1e1e9e62ce
Add certificate class and use it
Andre Heinecke <aheinecke@intevation.de>
parents:
18
diff
changeset
|
29 |
0
cb0cde2c5eb9
Initial commit. Basically a Hello World with a Tray Icon.
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
30 set(M13UI_SOURCES |
7
992c0ec57660
Add unit tests make CertificateList work.
Andre Heinecke <aheinecke@intevation.de>
parents:
4
diff
changeset
|
31 ${CMAKE_SOURCE_DIR}/ui/mainwindow.cpp |
11
7e2f14c7aba2
Split up downloader component and further implement it
Andre Heinecke <aheinecke@intevation.de>
parents:
7
diff
changeset
|
32 ${CMAKE_SOURCE_DIR}/ui/downloader.cpp |
7e2f14c7aba2
Split up downloader component and further implement it
Andre Heinecke <aheinecke@intevation.de>
parents:
7
diff
changeset
|
33 ${CMAKE_SOURCE_DIR}/ui/downloader_win.cpp |
7e2f14c7aba2
Split up downloader component and further implement it
Andre Heinecke <aheinecke@intevation.de>
parents:
7
diff
changeset
|
34 ${CMAKE_SOURCE_DIR}/ui/downloader_linux.cpp |
18
f4f957c58e0a
Move listuitol and add cert pinning with a test certificate
Andre Heinecke <aheinecke@intevation.de>
parents:
13
diff
changeset
|
35 ${CMAKE_SOURCE_DIR}/ui/main.cpp |
21
dc1e1e9e62ce
Add certificate class and use it
Andre Heinecke <aheinecke@intevation.de>
parents:
18
diff
changeset
|
36 ${CERTIFICATELIST_SOURCES} |
0
cb0cde2c5eb9
Initial commit. Basically a Hello World with a Tray Icon.
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
37 ) |
cb0cde2c5eb9
Initial commit. Basically a Hello World with a Tray Icon.
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
38 |
7
992c0ec57660
Add unit tests make CertificateList work.
Andre Heinecke <aheinecke@intevation.de>
parents:
4
diff
changeset
|
39 # Seperated to make it easier to include the sources in tests |
0
cb0cde2c5eb9
Initial commit. Basically a Hello World with a Tray Icon.
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
40 set(M13UI_RESOURCES |
18
f4f957c58e0a
Move listuitol and add cert pinning with a test certificate
Andre Heinecke <aheinecke@intevation.de>
parents:
13
diff
changeset
|
41 ${CMAKE_SOURCE_DIR}/ui/icons.qrc |
f4f957c58e0a
Move listuitol and add cert pinning with a test certificate
Andre Heinecke <aheinecke@intevation.de>
parents:
13
diff
changeset
|
42 ${CMAKE_SOURCE_DIR}/ui/certs.qrc |
0
cb0cde2c5eb9
Initial commit. Basically a Hello World with a Tray Icon.
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
43 ) |
cb0cde2c5eb9
Initial commit. Basically a Hello World with a Tray Icon.
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
44 |
1
524cd4908656
Build infrastructure
Andre Heinecke <aheinecke@intevation.de>
parents:
0
diff
changeset
|
45 # Warn level to be used for privileged parts |
13
e26f9cc93601
Also add Wall to GUI components. Link with crypto32 on windows
Andre Heinecke <aheinecke@intevation.de>
parents:
11
diff
changeset
|
46 set(WARN_HARDENING_FLAGS " -Wextra -Wconversion -Wformat-security") |
1
524cd4908656
Build infrastructure
Andre Heinecke <aheinecke@intevation.de>
parents:
0
diff
changeset
|
47 |
524cd4908656
Build infrastructure
Andre Heinecke <aheinecke@intevation.de>
parents:
0
diff
changeset
|
48 # Hardening flags |
21
dc1e1e9e62ce
Add certificate class and use it
Andre Heinecke <aheinecke@intevation.de>
parents:
18
diff
changeset
|
49 set(HARDENING_FLAGS " -Wall -Werror -fstack-protector-all -fno-exceptions") |
1
524cd4908656
Build infrastructure
Andre Heinecke <aheinecke@intevation.de>
parents:
0
diff
changeset
|
50 set(HARDENING_FLAGS " ${HARDENING_FLAGS} -Wstack-protector") |
524cd4908656
Build infrastructure
Andre Heinecke <aheinecke@intevation.de>
parents:
0
diff
changeset
|
51 set(HARDENING_FLAGS " ${HARDENING_FLAGS} --param ssp-buffer-size=4") |
24
de67047ca229
Add documentation generation
Andre Heinecke <aheinecke@intevation.de>
parents:
22
diff
changeset
|
52 set(HARDENING_FLAGS " ${HARDENING_FLAGS} -D_FORTIFY_SOURCE=2 -O0 -fprofile-arcs -ftest-coverage") |
de67047ca229
Add documentation generation
Andre Heinecke <aheinecke@intevation.de>
parents:
22
diff
changeset
|
53 |
de67047ca229
Add documentation generation
Andre Heinecke <aheinecke@intevation.de>
parents:
22
diff
changeset
|
54 SET(CMAKE_EXE_LINKER_FLAGS="-fprofile-arcs -ftest-coverage") |
1
524cd4908656
Build infrastructure
Andre Heinecke <aheinecke@intevation.de>
parents:
0
diff
changeset
|
55 |
0
cb0cde2c5eb9
Initial commit. Basically a Hello World with a Tray Icon.
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
56 if(UNIX) |
cb0cde2c5eb9
Initial commit. Basically a Hello World with a Tray Icon.
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
57 # See: https://bugreports.qt-project.org/browse/QTBUG-35918 |
cb0cde2c5eb9
Initial commit. Basically a Hello World with a Tray Icon.
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
58 # XCB_EXTRA_LIBS should be gotten automatically. |
cb0cde2c5eb9
Initial commit. Basically a Hello World with a Tray Icon.
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
59 # The following list is taken from the .pri file |
cb0cde2c5eb9
Initial commit. Basically a Hello World with a Tray Icon.
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
60 get_target_property(_loc Qt5::Widgets LOCATION) |
cb0cde2c5eb9
Initial commit. Basically a Hello World with a Tray Icon.
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
61 get_filename_component(_qtpath ${_loc} PATH) |
25
92108a2120f1
Move certificatelist to common. Add cinst directory
Andre Heinecke <aheinecke@intevation.de>
parents:
24
diff
changeset
|
62 set(XCB_EXTRA_LIBS -static -static-libgcc |
0
cb0cde2c5eb9
Initial commit. Basically a Hello World with a Tray Icon.
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
63 -L${_qtpath} |
cb0cde2c5eb9
Initial commit. Basically a Hello World with a Tray Icon.
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
64 -lX11 -lX11-xcb -lXi -lxcb-render-util -lXrender -lSM -lICE -lxcb-render -ldbus-1 |
cb0cde2c5eb9
Initial commit. Basically a Hello World with a Tray Icon.
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
65 -lxcb -lxcb-image -lxcb-icccm -lxcb-sync -lxcb-xfixes -lxcb-shm -lxcb-randr |
cb0cde2c5eb9
Initial commit. Basically a Hello World with a Tray Icon.
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
66 -lxcb-shape -lxcb-keysyms -lQt5PlatformSupport |
cb0cde2c5eb9
Initial commit. Basically a Hello World with a Tray Icon.
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
67 -lfreetype -lQt5DBus -lQt5Gui -ljpeg -lpng -lQt5Core |
cb0cde2c5eb9
Initial commit. Basically a Hello World with a Tray Icon.
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
68 -lz -lm -ldl -lrt -lpthread) |
cb0cde2c5eb9
Initial commit. Basically a Hello World with a Tray Icon.
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
69 |
cb0cde2c5eb9
Initial commit. Basically a Hello World with a Tray Icon.
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
70 set(EXTRA_STATIC_LIBS -lz -lpthread -ldl -lpng -ljpeg |
cb0cde2c5eb9
Initial commit. Basically a Hello World with a Tray Icon.
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
71 Qt5::QXcbIntegrationPlugin ${XCB_EXTRA_LIBS}) |
4
9849250f50f2
Start implementation of certificatelist parser
Andre Heinecke <aheinecke@intevation.de>
parents:
1
diff
changeset
|
72 |
9849250f50f2
Start implementation of certificatelist parser
Andre Heinecke <aheinecke@intevation.de>
parents:
1
diff
changeset
|
73 set(HARDENING_FLAGS " ${HARDENING_FLAGS} -pie -fPIE -ftrapv") |
9849250f50f2
Start implementation of certificatelist parser
Andre Heinecke <aheinecke@intevation.de>
parents:
1
diff
changeset
|
74 set(HARDENING_FLAGS " ${HARDENING_FLAGS} -Wl,-z,relro,-z,now") |
0
cb0cde2c5eb9
Initial commit. Basically a Hello World with a Tray Icon.
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
75 elseif(WIN32) |
cb0cde2c5eb9
Initial commit. Basically a Hello World with a Tray Icon.
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
76 get_target_property(_loc Qt5::Widgets LOCATION) |
cb0cde2c5eb9
Initial commit. Basically a Hello World with a Tray Icon.
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
77 get_filename_component(_qtpath ${_loc} PATH) |
cb0cde2c5eb9
Initial commit. Basically a Hello World with a Tray Icon.
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
78 set(WINDOWS_EXTRA_LIBS |
cb0cde2c5eb9
Initial commit. Basically a Hello World with a Tray Icon.
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
79 -L${_qtpath} |
cb0cde2c5eb9
Initial commit. Basically a Hello World with a Tray Icon.
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
80 -lwinspool -lshlwapi -lfreetype -lbz2 -lpng16 |
cb0cde2c5eb9
Initial commit. Basically a Hello World with a Tray Icon.
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
81 -lQt5PlatformSupport -lQt5Gui -lcomdlg32 -loleaut32 -limm32 -lwinmm |
cb0cde2c5eb9
Initial commit. Basically a Hello World with a Tray Icon.
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
82 -lglu32 -lopengl32 -lgdi32 -ljpeg -lpng -lQt5Core -lole32 -luuid -lws2_32 |
cb0cde2c5eb9
Initial commit. Basically a Hello World with a Tray Icon.
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
83 -ladvapi32 -lshell32 -luser32 -lkernel32 -lz -lsicuin -lsicuuc -lsicudt -lpcre16) |
11
7e2f14c7aba2
Split up downloader component and further implement it
Andre Heinecke <aheinecke@intevation.de>
parents:
7
diff
changeset
|
84 |
13
e26f9cc93601
Also add Wall to GUI components. Link with crypto32 on windows
Andre Heinecke <aheinecke@intevation.de>
parents:
11
diff
changeset
|
85 set(EXTRA_STATIC_LIBS Qt5::QWindowsIntegrationPlugin ${WINDOWS_EXTRA_LIBS} -lwinhttp -lcrypt32) |
1
524cd4908656
Build infrastructure
Andre Heinecke <aheinecke@intevation.de>
parents:
0
diff
changeset
|
86 |
4
9849250f50f2
Start implementation of certificatelist parser
Andre Heinecke <aheinecke@intevation.de>
parents:
1
diff
changeset
|
87 set(HARDENING_FLAGS " ${HARDENING_FLAGS} -Wl,--dynamicbase -Wl,--nxcompat") |
0
cb0cde2c5eb9
Initial commit. Basically a Hello World with a Tray Icon.
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
88 endif() |
cb0cde2c5eb9
Initial commit. Basically a Hello World with a Tray Icon.
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
89 |
1
524cd4908656
Build infrastructure
Andre Heinecke <aheinecke@intevation.de>
parents:
0
diff
changeset
|
90 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${Qt5Widgets_EXECUTABLE_COMPILE_FLAGS}") |
524cd4908656
Build infrastructure
Andre Heinecke <aheinecke@intevation.de>
parents:
0
diff
changeset
|
91 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${HARDENING_FLAGS}") |
7
992c0ec57660
Add unit tests make CertificateList work.
Andre Heinecke <aheinecke@intevation.de>
parents:
4
diff
changeset
|
92 set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${WARN_HARDENING_FLAGS} ${HARDENING_FLAGS}") |
1
524cd4908656
Build infrastructure
Andre Heinecke <aheinecke@intevation.de>
parents:
0
diff
changeset
|
93 |
25
92108a2120f1
Move certificatelist to common. Add cinst directory
Andre Heinecke <aheinecke@intevation.de>
parents:
24
diff
changeset
|
94 # Adding resources here in an extra variable to enable reuse of |
92108a2120f1
Move certificatelist to common. Add cinst directory
Andre Heinecke <aheinecke@intevation.de>
parents:
24
diff
changeset
|
95 # M13UI_SOURCES in the test subdirectory. |
92108a2120f1
Move certificatelist to common. Add cinst directory
Andre Heinecke <aheinecke@intevation.de>
parents:
24
diff
changeset
|
96 set(M13UI_SOURCES_WITH_RESOURCES ${M13UI_SOURCES}) |
92108a2120f1
Move certificatelist to common. Add cinst directory
Andre Heinecke <aheinecke@intevation.de>
parents:
24
diff
changeset
|
97 qt5_add_resources(M13UI_SOURCES_WITH_RESOURCES ${M13UI_RESOURCES}) |
92108a2120f1
Move certificatelist to common. Add cinst directory
Andre Heinecke <aheinecke@intevation.de>
parents:
24
diff
changeset
|
98 add_executable(m13ui ${M13UI_SOURCES_WITH_RESOURCES}) |
0
cb0cde2c5eb9
Initial commit. Basically a Hello World with a Tray Icon.
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
99 |
24
de67047ca229
Add documentation generation
Andre Heinecke <aheinecke@intevation.de>
parents:
22
diff
changeset
|
100 target_link_libraries(m13ui Qt5::Widgets ${EXTRA_STATIC_LIBS} gcov) |
1
524cd4908656
Build infrastructure
Andre Heinecke <aheinecke@intevation.de>
parents:
0
diff
changeset
|
101 |
524cd4908656
Build infrastructure
Andre Heinecke <aheinecke@intevation.de>
parents:
0
diff
changeset
|
102 add_custom_target(static_check) |
524cd4908656
Build infrastructure
Andre Heinecke <aheinecke@intevation.de>
parents:
0
diff
changeset
|
103 |
524cd4908656
Build infrastructure
Andre Heinecke <aheinecke@intevation.de>
parents:
0
diff
changeset
|
104 # CPPCheck |
524cd4908656
Build infrastructure
Andre Heinecke <aheinecke@intevation.de>
parents:
0
diff
changeset
|
105 include(GenerateCppcheck) |
25
92108a2120f1
Move certificatelist to common. Add cinst directory
Andre Heinecke <aheinecke@intevation.de>
parents:
24
diff
changeset
|
106 generate_cppcheck(SOURCES ${CINST_SOURCES} ${M13UI_SOURCES} TARGET_NAME m13) |
1
524cd4908656
Build infrastructure
Andre Heinecke <aheinecke@intevation.de>
parents:
0
diff
changeset
|
107 add_dependencies(static_check cppcheck) |
524cd4908656
Build infrastructure
Andre Heinecke <aheinecke@intevation.de>
parents:
0
diff
changeset
|
108 |
524cd4908656
Build infrastructure
Andre Heinecke <aheinecke@intevation.de>
parents:
0
diff
changeset
|
109 # FlawFinder |
524cd4908656
Build infrastructure
Andre Heinecke <aheinecke@intevation.de>
parents:
0
diff
changeset
|
110 find_program(FLAWFINDER_PATH flawfinder DOC "flawfinder path") |
524cd4908656
Build infrastructure
Andre Heinecke <aheinecke@intevation.de>
parents:
0
diff
changeset
|
111 if (FLAWFINDER_PATH) |
524cd4908656
Build infrastructure
Andre Heinecke <aheinecke@intevation.de>
parents:
0
diff
changeset
|
112 add_custom_target(flawfinder COMMENT "FlawFinder" VERBATIM COMMAND ${FLAWFINDER_PATH} |
524cd4908656
Build infrastructure
Andre Heinecke <aheinecke@intevation.de>
parents:
0
diff
changeset
|
113 ${CMAKE_SOURCE_DIR}/ui |
18
f4f957c58e0a
Move listuitol and add cert pinning with a test certificate
Andre Heinecke <aheinecke@intevation.de>
parents:
13
diff
changeset
|
114 ${CMAKE_SOURCE_DIR}/cinst |
25
92108a2120f1
Move certificatelist to common. Add cinst directory
Andre Heinecke <aheinecke@intevation.de>
parents:
24
diff
changeset
|
115 ${CMAKE_SOURCE_DIR}/common |
1
524cd4908656
Build infrastructure
Andre Heinecke <aheinecke@intevation.de>
parents:
0
diff
changeset
|
116 ) |
524cd4908656
Build infrastructure
Andre Heinecke <aheinecke@intevation.de>
parents:
0
diff
changeset
|
117 add_dependencies(static_check flawfinder) |
524cd4908656
Build infrastructure
Andre Heinecke <aheinecke@intevation.de>
parents:
0
diff
changeset
|
118 endif (FLAWFINDER_PATH) |
524cd4908656
Build infrastructure
Andre Heinecke <aheinecke@intevation.de>
parents:
0
diff
changeset
|
119 |
7
992c0ec57660
Add unit tests make CertificateList work.
Andre Heinecke <aheinecke@intevation.de>
parents:
4
diff
changeset
|
120 # Tests |
992c0ec57660
Add unit tests make CertificateList work.
Andre Heinecke <aheinecke@intevation.de>
parents:
4
diff
changeset
|
121 add_subdirectory(tests) |
25
92108a2120f1
Move certificatelist to common. Add cinst directory
Andre Heinecke <aheinecke@intevation.de>
parents:
24
diff
changeset
|
122 add_subdirectory(cinst) |
24
de67047ca229
Add documentation generation
Andre Heinecke <aheinecke@intevation.de>
parents:
22
diff
changeset
|
123 |
de67047ca229
Add documentation generation
Andre Heinecke <aheinecke@intevation.de>
parents:
22
diff
changeset
|
124 # Documentation |
de67047ca229
Add documentation generation
Andre Heinecke <aheinecke@intevation.de>
parents:
22
diff
changeset
|
125 configure_file (doc/Doxyfile.in doc/Doxyfile) |
de67047ca229
Add documentation generation
Andre Heinecke <aheinecke@intevation.de>
parents:
22
diff
changeset
|
126 add_subdirectory(doc) |