-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
20 lines (12 loc) · 1.56 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
cmake_minimum_required(VERSION 3.16)
project(Ronkoids)
set(CMAKE_CXX_STANDARD 20)
SET(CMAKE_FIND_LIBRARY_PREFIXES "")
SET(CMAKE_FIND_LIBRARY_SUFFIXES ".lib" ".dll")
include_directories(headers lib/lua/include lib)
add_executable(Ronkoids src/main.cpp headers/Game/Application.h src/Game/Application.cpp headers/ResourceHolder.h headers/ResourceIdentifiers.h headers/pch.h src/pch.cpp src/Command.cpp headers/Command.h src/CommandQueue.cpp headers/CommandQueue.h src/States/StateStack.cpp headers/States/StateStack.h src/States/State.cpp headers/States/State.h src/Game/States/GameState.cpp headers/Game/States/GameState.h src/Game/World.cpp headers/Game/World.h src/Game/Player.cpp headers/Game/Player.h src/Game/SpaceshipWorld.cpp headers/Game/SpaceshipWorld.h src/Game/AlienWorld.cpp headers/Game/AlienWorld.h src/Entities/Entities.cpp headers/Entities/Entities.h src/Entities/SceneNode.cpp headers/Entities/SceneNode.h src/Game/States/LoadState.cpp headers/Game/States/LoadState.h headers/States/StateIdentifiers.h src/Entities/SpriteNode.cpp headers/Entities/SpriteNode.h src/Game/LeftPlayer.cpp headers/Game/LeftPlayer.h src/Game/RightPlayer.cpp headers/Game/RightPlayer.h src/Lua/LuaWrapper.cpp headers/Lua/LuaWrapper.h headers/Lua/LuaContext.h src/States/StateIdentifiers.cpp src/States/StateLoader.cpp headers/States/StateLoader.h)
if(WIN32)
set(SFML_DIR lib/SFML/lib/cmake/SFML)
endif()
find_package(SFML 2.5 COMPONENTS system window graphics network audio REQUIRED)
target_link_libraries(Ronkoids sfml-system sfml-window sfml-graphics sfml-network sfml-audio ${LUA_LIB})