Commit 7b6cf311 authored by Thomas Eppers's avatar Thomas Eppers
Browse files

moved files to compile to the bottom

parent 4e682780
......@@ -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 .)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment