Mercurial > trustbridge
comparison CMakeLists.txt @ 13:e26f9cc93601
Also add Wall to GUI components. Link with crypto32 on windows
author | Andre Heinecke <aheinecke@intevation.de> |
---|---|
date | Wed, 19 Feb 2014 10:44:09 +0000 |
parents | 7e2f14c7aba2 |
children | f4f957c58e0a |
comparison
equal
deleted
inserted
replaced
12:9121eea6d93f | 13:e26f9cc93601 |
---|---|
32 set(M13UI_RESOURCES | 32 set(M13UI_RESOURCES |
33 ui/icons.qrc | 33 ui/icons.qrc |
34 ) | 34 ) |
35 | 35 |
36 # Warn level to be used for privileged parts | 36 # Warn level to be used for privileged parts |
37 set(WARN_HARDENING_FLAGS " -Wall -Wextra -Wconversion -Wformat-security") | 37 set(WARN_HARDENING_FLAGS " -Wextra -Wconversion -Wformat-security") |
38 | 38 |
39 # Hardening flags | 39 # Hardening flags |
40 set(HARDENING_FLAGS " -Werror -fstack-protector-all") | 40 set(HARDENING_FLAGS " -Wall -Werror -fstack-protector-all") |
41 set(HARDENING_FLAGS " ${HARDENING_FLAGS} -Wstack-protector") | 41 set(HARDENING_FLAGS " ${HARDENING_FLAGS} -Wstack-protector") |
42 set(HARDENING_FLAGS " ${HARDENING_FLAGS} --param ssp-buffer-size=4") | 42 set(HARDENING_FLAGS " ${HARDENING_FLAGS} --param ssp-buffer-size=4") |
43 set(HARDENING_FLAGS " ${HARDENING_FLAGS} -D_FORTIFY_SOURCE=2 -O2") | 43 set(HARDENING_FLAGS " ${HARDENING_FLAGS} -D_FORTIFY_SOURCE=2 -O2") |
44 | 44 |
45 if(UNIX) | 45 if(UNIX) |
69 -lwinspool -lshlwapi -lfreetype -lbz2 -lpng16 | 69 -lwinspool -lshlwapi -lfreetype -lbz2 -lpng16 |
70 -lQt5PlatformSupport -lQt5Gui -lcomdlg32 -loleaut32 -limm32 -lwinmm | 70 -lQt5PlatformSupport -lQt5Gui -lcomdlg32 -loleaut32 -limm32 -lwinmm |
71 -lglu32 -lopengl32 -lgdi32 -ljpeg -lpng -lQt5Core -lole32 -luuid -lws2_32 | 71 -lglu32 -lopengl32 -lgdi32 -ljpeg -lpng -lQt5Core -lole32 -luuid -lws2_32 |
72 -ladvapi32 -lshell32 -luser32 -lkernel32 -lz -lsicuin -lsicuuc -lsicudt -lpcre16) | 72 -ladvapi32 -lshell32 -luser32 -lkernel32 -lz -lsicuin -lsicuuc -lsicudt -lpcre16) |
73 | 73 |
74 set(EXTRA_STATIC_LIBS Qt5::QWindowsIntegrationPlugin ${WINDOWS_EXTRA_LIBS} -lwinhttp) | 74 set(EXTRA_STATIC_LIBS Qt5::QWindowsIntegrationPlugin ${WINDOWS_EXTRA_LIBS} -lwinhttp -lcrypt32) |
75 | 75 |
76 set(HARDENING_FLAGS " ${HARDENING_FLAGS} -Wl,--dynamicbase -Wl,--nxcompat") | 76 set(HARDENING_FLAGS " ${HARDENING_FLAGS} -Wl,--dynamicbase -Wl,--nxcompat") |
77 endif() | 77 endif() |
78 | 78 |
79 qt5_add_resources(M13UI_SOURCES ${M13UI_RESOURCES}) | 79 qt5_add_resources(M13UI_SOURCES ${M13UI_RESOURCES}) |