Mercurial > trustbridge
comparison CMakeLists.txt @ 363:d10d9bc2e84f
Update Windows api usage. Warning: To build on windows you need
a shell32.dll with SHGetKnownFolder
author | Andre Heinecke <aheinecke@intevation.de> |
---|---|
date | Mon, 14 Apr 2014 16:57:41 +0000 |
parents | 2fd69803d219 |
children | 35d6b371ba63 |
comparison
equal
deleted
inserted
replaced
362:857ae1ffdd6f | 363:d10d9bc2e84f |
---|---|
52 if(ENABLE_PROFILING) | 52 if(ENABLE_PROFILING) |
53 set(PROFILING_FLAGS "-fprofile-arcs -ftest-coverage") | 53 set(PROFILING_FLAGS "-fprofile-arcs -ftest-coverage") |
54 set(PROFILING_LIBS gcov) | 54 set(PROFILING_LIBS gcov) |
55 endif() | 55 endif() |
56 | 56 |
57 if(WIN32) | |
58 add_definitions(-D_WIN32_WINNT=0x0600) # Windows vista | |
59 add_definitions(-DWINVER=0x0600) | |
60 add_definitions(-DMINGW_HAS_SECURE_API) # for _s functions | |
61 endif(WIN32) | |
62 | |
57 if(UNIX) | 63 if(UNIX) |
58 set(HARDENING_FLAGS " ${HARDENING_FLAGS} -pie -fPIE -ftrapv") | 64 set(HARDENING_FLAGS " ${HARDENING_FLAGS} -pie -fPIE -ftrapv") |
59 set(HARDENING_FLAGS " ${HARDENING_FLAGS} -Wl,-z,relro,-z,now") | 65 set(HARDENING_FLAGS " ${HARDENING_FLAGS} -Wl,-z,relro,-z,now") |
60 elseif(WIN32) | 66 elseif(WIN32) |
61 set(HARDENING_FLAGS " ${HARDENING_FLAGS} -Wl,--dynamicbase -Wl,--nxcompat") | 67 set(HARDENING_FLAGS " ${HARDENING_FLAGS} -Wl,--dynamicbase -Wl,--nxcompat") |