comparison CMakeLists.txt @ 21:dc1e1e9e62ce

Add certificate class and use it
author Andre Heinecke <aheinecke@intevation.de>
date Thu, 20 Feb 2014 10:58:28 +0000
parents f4f957c58e0a
children bc302bbceaf5
comparison
equal deleted inserted replaced
20:fec1a610d43f 21:dc1e1e9e62ce
15 find_package(Qt5Widgets REQUIRED) 15 find_package(Qt5Widgets REQUIRED)
16 16
17 include_directories(${Qt5Widgets_INCLUDE_DIRS}) 17 include_directories(${Qt5Widgets_INCLUDE_DIRS})
18 add_definitions(${Qt5Widgets_DEFINITIONS}) 18 add_definitions(${Qt5Widgets_DEFINITIONS})
19 19
20 set(CERTIFICATELIST_SOURCES
21 ${CMAKE_SOURCE_DIR}/ui/certificatelist.cpp
22 ${CMAKE_SOURCE_DIR}/ui/certificate.cpp
23 ${CMAKE_SOURCE_DIR}/ui/certificate_win.cpp
24 ${CMAKE_SOURCE_DIR}/ui/certificate_linux.cpp
25 ${CMAKE_SOURCE_DIR}/cinst/listutil.c
26 )
27
20 set(M13UI_SOURCES 28 set(M13UI_SOURCES
21 ${CMAKE_SOURCE_DIR}/ui/mainwindow.cpp 29 ${CMAKE_SOURCE_DIR}/ui/mainwindow.cpp
22 ${CMAKE_SOURCE_DIR}/ui/certificatelist.cpp
23 ${CMAKE_SOURCE_DIR}/ui/downloader.cpp 30 ${CMAKE_SOURCE_DIR}/ui/downloader.cpp
24 ${CMAKE_SOURCE_DIR}/ui/downloader_win.cpp 31 ${CMAKE_SOURCE_DIR}/ui/downloader_win.cpp
25 ${CMAKE_SOURCE_DIR}/ui/downloader_linux.cpp 32 ${CMAKE_SOURCE_DIR}/ui/downloader_linux.cpp
26 ${CMAKE_SOURCE_DIR}/cinst/listutil.c
27 ${CMAKE_SOURCE_DIR}/ui/main.cpp 33 ${CMAKE_SOURCE_DIR}/ui/main.cpp
34 ${CERTIFICATELIST_SOURCES}
28 ) 35 )
29 36
30 # Seperated to make it easier to include the sources in tests 37 # Seperated to make it easier to include the sources in tests
31 set(M13UI_MAIN ) 38 set(M13UI_MAIN )
32 39
37 44
38 # Warn level to be used for privileged parts 45 # Warn level to be used for privileged parts
39 set(WARN_HARDENING_FLAGS " -Wextra -Wconversion -Wformat-security") 46 set(WARN_HARDENING_FLAGS " -Wextra -Wconversion -Wformat-security")
40 47
41 # Hardening flags 48 # Hardening flags
42 set(HARDENING_FLAGS " -Wall -Werror -fstack-protector-all") 49 set(HARDENING_FLAGS " -Wall -Werror -fstack-protector-all -fno-exceptions")
43 set(HARDENING_FLAGS " ${HARDENING_FLAGS} -Wstack-protector") 50 set(HARDENING_FLAGS " ${HARDENING_FLAGS} -Wstack-protector")
44 set(HARDENING_FLAGS " ${HARDENING_FLAGS} --param ssp-buffer-size=4") 51 set(HARDENING_FLAGS " ${HARDENING_FLAGS} --param ssp-buffer-size=4")
45 set(HARDENING_FLAGS " ${HARDENING_FLAGS} -D_FORTIFY_SOURCE=2 -O2") 52 set(HARDENING_FLAGS " ${HARDENING_FLAGS} -D_FORTIFY_SOURCE=2 -O2")
46 53
47 if(UNIX) 54 if(UNIX)

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