Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
GameDevWeek
Sommersemester 2015
Cpp
Deth Buff Arr
Commits
4e682780
Commit
4e682780
authored
Oct 03, 2015
by
Thomas Eppers
Browse files
moved project specific options to the bottom to not include them in the libraries
parent
41e462bb
Changes
1
Hide whitespace changes
Inline
Side-by-side
CMakeLists.txt
View file @
4e682780
cmake_minimum_required
(
VERSION 2.8
)
project
(
gdw_ss15_cpp
)
#set compiler options
if
(
${
CMAKE_CXX_COMPILER
}
MATCHES
"clang"
)
set
(
CMAKE_CXX_FLAGS
"
${
CMAKE_FXX_FLAGS
}
-stdlib=libc++"
)
endif
()
set
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
-std=c++1y"
)
set
(
CMAKE_CXX_FLAGS_DEBUG
"
${
CMAKE_CXX_FLAGS
}
-g -Wall -Wextra"
)
#define symbols for debug build
if
(
CMAKE_BUILD_TYPE STREQUAL Debug
)
add_definitions
(
-DDEBUG
)
if
(
NOT WIN32
)
add_definitions
(
-DSTACKTRACE
)
endif
()
endif
()
################################################################################
# Libraries
################################################################################
...
...
@@ -133,10 +118,25 @@ add_library(nanovg ${nanovg_SRC})
# Project settings
################################################################################
#set compiler options
if
(
${
CMAKE_CXX_COMPILER
}
MATCHES
"clang"
)
set
(
CMAKE_CXX_FLAGS
"
${
CMAKE_FXX_FLAGS
}
-stdlib=libc++"
)
endif
()
set
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
-std=c++1y"
)
set
(
CMAKE_CXX_FLAGS_DEBUG
"
${
CMAKE_CXX_FLAGS
}
-g -Wall -Wextra"
)
#define symbols for debug build
if
(
CMAKE_BUILD_TYPE STREQUAL Debug
)
add_definitions
(
-DDEBUG
)
if
(
NOT MSVC
)
add_definitions
(
-DSTACKTRACE
)
endif
()
endif
()
)
#libraries to link
set
(
LINKED_LIBRARIES
glew_static
nanovg
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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