-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
15 lines (11 loc) · 1.69 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
project(Project)
cmake_minimum_required(VERSION 3.21.1)
set(CMAKE_CXX_STANDARD 14)
set(CMAKE_EXE_LINKER_FLAGS "-static")
set(DEPENDENCIES_DIR dependencies/)
include_directories(${DEPENDENCIES_DIR}SDL/include ${DEPENDENCIES_DIR}SDL_ttf/include ${DEPENDENCIES_DIR}SDL_image/include)
link_directories(${DEPENDENCIES_DIR}SDL/lib/x64 ${DEPENDENCIES_DIR}SDL_ttf/lib/x64 ${DEPENDENCIES_DIR}SDL_image/lib/x64)
add_executable(RiotCat src/main.cpp src/RiotCat/Window.h src/RiotCat/Window.cpp src/RiotCat/Drawing.h src/RiotCat/Drawing.cpp src/RiotCat/Clock.h src/RiotCat/Clock.cpp src/RiotCat/Input.h src/RiotCat/Input.cpp src/RiotCat/Files.cpp src/RiotCat/Files.h src/RiotCat/Character.cpp src/RiotCat/Character.h src/RiotCat/Rect.h src/RiotCat/Rect.cpp src/RiotCat/Tile.h src/RiotCat/Tile.cpp src/RiotCat/editor/ETilemap.h src/RiotCat/editor/ETilemap.cpp src/RiotCat/Gameworld.h src/RiotCat/Gameworld.cpp src/RiotCat/Camera.cpp src/RiotCat/Camera.h src/RiotCat/editor/Ghost.cpp src/RiotCat/editor/Ghost.h)
add_executable(Editor src/editor.cpp src/RiotCat/Window.h src/RiotCat/Window.cpp src/RiotCat/Drawing.h src/RiotCat/Drawing.cpp src/RiotCat/Clock.h src/RiotCat/Clock.cpp src/RiotCat/Input.h src/RiotCat/Input.cpp src/RiotCat/Files.cpp src/RiotCat/Files.h src/RiotCat/Character.cpp src/RiotCat/Character.h src/RiotCat/Rect.h src/RiotCat/Rect.cpp src/RiotCat/Tile.h src/RiotCat/Tile.cpp src/RiotCat/editor/ETilemap.h src/RiotCat/editor/ETilemap.cpp src/RiotCat/Gameworld.h src/RiotCat/Gameworld.cpp src/RiotCat/Camera.cpp src/RiotCat/Camera.h src/RiotCat/editor/Ghost.cpp src/RiotCat/editor/Ghost.h)
target_link_libraries(RiotCat SDL2main SDL2 SDL2_ttf SDL2_image)
target_link_libraries(Editor SDL2main SDL2 SDL2_ttf SDL2_image)