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
7b6cf311
Commit
7b6cf311
authored
Oct 03, 2015
by
Thomas Eppers
Browse files
moved files to compile to the bottom
parent
4e682780
Changes
1
Hide whitespace changes
Inline
Side-by-side
CMakeLists.txt
View file @
7b6cf311
...
...
@@ -12,13 +12,6 @@ include(FindPkgConfig)
PKG_SEARCH_MODULE
(
SDL2 REQUIRED sdl2
)
PKG_SEARCH_MODULE
(
SDL2MIXER REQUIRED SDL2_mixer
)
include_directories
(
${
CMAKE_CURRENT_SOURCE_DIR
}
/include
)
FILE
(
GLOB_RECURSE clion_all_headers
${
CMAKE_CURRENT_SOURCE_DIR
}
/src/*.cpp
${
CMAKE_CURRENT_SOURCE_DIR
}
/include/*.h
${
CMAKE_CURRENT_SOURCE_DIR
}
/include/*.hpp
${
CMAKE_CURRENT_SOURCE_DIR
}
/*.inl
${
SDL2_INCLUDE_DIRS
}
${
SDL2_mixer_INCLUDE_DIRS
}
)
...
...
@@ -133,8 +126,22 @@ if (CMAKE_BUILD_TYPE STREQUAL Debug)
endif
()
endif
()
#include directory
include_directories
(
${
CMAKE_CURRENT_SOURCE_DIR
}
/include
)
#project files to compile
file
(
GLOB_RECURSE project_SRC
${
CMAKE_CURRENT_SOURCE_DIR
}
/src/*.cpp
)
file
(
GLOB_RECURSE project_HDR
${
CMAKE_CURRENT_SOURCE_DIR
}
/include/*.h
${
CMAKE_CURRENT_SOURCE_DIR
}
/include/*.hpp
)
file
(
GLOB_RECURSE project_INL
${
CMAKE_CURRENT_SOURCE_DIR
}
/*.inl
)
#libraries to link
set
(
LINKED_LIBRARIES
...
...
@@ -152,7 +159,7 @@ set(LINKED_LIBRARIES
c++abi
)
add_executable
(
Game
${
clion_all_headers
}
)
add_executable
(
Game
${
project_SRC
}
${
project_HDR
}
${
project_INL
}
)
target_link_libraries
(
Game
${
LINKED_LIBRARIES
}
)
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