Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Donald Haase
Cockatrice
Commits
a55b3784
Commit
a55b3784
authored
Mar 21, 2016
by
Fabio Bas
Browse files
cmake: Enable c++11 for all targets
parent
18993b39
Changes
4
Show whitespace changes
Inline
Side-by-side
CMakeLists.txt
View file @
a55b3784
...
...
@@ -37,6 +37,9 @@ ENDIF()
# A project name is needed for CPack
PROJECT
(
"
${
PROJECT_NAME
}
"
)
# Use c++11 for all targets
set
(
CMAKE_CXX_STANDARD 11 CACHE STRING
"C++ ISO Standard"
)
set
(
CMAKE_CXX_STANDARD_REQUIRED True
)
# Set conventional loops
set
(
CMAKE_ALLOW_LOOSE_LOOP_CONSTRUCTS true
)
...
...
cockatrice/CMakeLists.txt
View file @
a55b3784
...
...
@@ -244,8 +244,6 @@ INCLUDE_DIRECTORIES(${CMAKE_CURRENT_BINARY_DIR})
# Build cockatrice binary and link it
ADD_EXECUTABLE
(
cockatrice WIN32 MACOSX_BUNDLE
${
cockatrice_SOURCES
}
${
cockatrice_QM
}
${
cockatrice_RESOURCES_RCC
}
${
cockatrice_MOC_SRCS
}
)
set_property
(
TARGET cockatrice PROPERTY CXX_STANDARD 11
)
set_property
(
TARGET cockatrice PROPERTY CXX_STANDARD_REQUIRED ON
)
if
(
Qt4_FOUND
)
if
(
MSVC
)
...
...
oracle/CMakeLists.txt
View file @
a55b3784
...
...
@@ -130,8 +130,6 @@ ENDIF()
# Build oracle binary and link it
ADD_EXECUTABLE
(
oracle WIN32 MACOSX_BUNDLE
${
oracle_SOURCES
}
${
oracle_QM
}
${
oracle_RESOURCES_RCC
}
${
oracle_MOC_SRCS
}
)
set_property
(
TARGET oracle PROPERTY CXX_STANDARD 11
)
set_property
(
TARGET oracle PROPERTY CXX_STANDARD_REQUIRED ON
)
if
(
Qt4_FOUND
)
if
(
MSVC
)
...
...
servatrice/CMakeLists.txt
View file @
a55b3784
...
...
@@ -117,8 +117,6 @@ INCLUDE_DIRECTORIES(${CMAKE_CURRENT_BINARY_DIR})
# Build servatrice binary and link it
ADD_EXECUTABLE
(
servatrice MACOSX_BUNDLE
${
servatrice_SOURCES
}
${
servatrice_RESOURCES_RCC
}
${
servatrice_MOC_SRCS
}
)
set_property
(
TARGET servatrice PROPERTY CXX_STANDARD 11
)
set_property
(
TARGET servatrice PROPERTY CXX_STANDARD_REQUIRED ON
)
if
(
Qt4_FOUND
)
if
(
MSVC
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment