comparison CMakeLists.txt @ 22:e8320104979d

Depend on Printsupport use c++11
author Andre Heinecke <andre.heinecke@intevation.de>
date Mon, 11 Apr 2016 10:59:08 +0200
parents 49cd5cc0b072
children aa47b8e4f807
comparison
equal deleted inserted replaced
21:0b66b10a287d 22:e8320104979d
32 32
33 add_definitions(-DVERSION="${PROJECT_VERSION}") 33 add_definitions(-DVERSION="${PROJECT_VERSION}")
34 add_definitions(-DAPPNAME="${PROJECT_NAME}") 34 add_definitions(-DAPPNAME="${PROJECT_NAME}")
35 35
36 find_package(Qt5Widgets) 36 find_package(Qt5Widgets)
37 find_package(Qt5PrintSupport)
37 38
38 set(CMAKE_AUTOMOC ON) 39 set(CMAKE_AUTOMOC ON)
39 set(CMAKE_INCLUDE_CURRENT_DIR ON) 40 set(CMAKE_INCLUDE_CURRENT_DIR ON)
40 41
41 ### Hardening flags 42 ### Hardening flags
52 add_definitions(-DWINVER=0x0600) 53 add_definitions(-DWINVER=0x0600)
53 add_definitions(-DUNICODE -D_UNICODE) 54 add_definitions(-DUNICODE -D_UNICODE)
54 add_definitions(-DMINGW_HAS_SECURE_API) # for _s functions 55 add_definitions(-DMINGW_HAS_SECURE_API) # for _s functions
55 endif(WIN32) 56 endif(WIN32)
56 57
57 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${HARDENING_FLAGS}") 58 set(CMAKE_CXX_FLAGS "-std=c++11 ${CMAKE_CXX_FLAGS} ${HARDENING_FLAGS}")
58 59
59 # Cmake does not correctly identify gcc windres when cross compiling 60 # Cmake does not correctly identify gcc windres when cross compiling
60 # making this line neccessary to set the correct flags for it. 61 # making this line neccessary to set the correct flags for it.
61 # See: http://public.kitware.com/Bug/view.php?id=11773 62 # See: http://public.kitware.com/Bug/view.php?id=11773
62 SET(CMAKE_RC_COMPILE_OBJECT 63 SET(CMAKE_RC_COMPILE_OBJECT
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)