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
13b551f8
Commit
13b551f8
authored
Oct 03, 2015
by
Thomas Eppers
Browse files
added more comments and replaced spaces with tabs
parent
7b6cf311
Changes
1
Hide whitespace changes
Inline
Side-by-side
CMakeLists.txt
View file @
13b551f8
...
...
@@ -113,7 +113,7 @@ add_library(nanovg ${nanovg_SRC})
#set compiler options
if
(
${
CMAKE_CXX_COMPILER
}
MATCHES
"clang"
)
set
(
CMAKE_CXX_FLAGS
"
${
CMAKE_FXX_FLAGS
}
-stdlib=libc++"
)
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"
)
...
...
@@ -126,7 +126,7 @@ if (CMAKE_BUILD_TYPE STREQUAL Debug)
endif
()
endif
()
#include directory
#include directory
of project
include_directories
(
${
CMAKE_CURRENT_SOURCE_DIR
}
/include
)
...
...
@@ -145,21 +145,23 @@ file(GLOB_RECURSE project_INL
#libraries to link
set
(
LINKED_LIBRARIES
glew_static
nanovg
DebugUtils
DetourCrowd
Detour
Recast
SDL2
SDL2main
SDL2_mixer
GL
c++
c++abi
)
glew_static
nanovg
DebugUtils
DetourCrowd
Detour
Recast
SDL2
SDL2main
SDL2_mixer
GL
c++
c++abi
)
#build executable and then link to the libraries
add_executable
(
Game
${
project_SRC
}
${
project_HDR
}
${
project_INL
}
)
target_link_libraries
(
Game
${
LINKED_LIBRARIES
}
)
#copy assets to the executable destination
file
(
COPY assets DESTINATION .
)
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