2023-04-26 13:58:10 +02:00
|
|
|
cmake_minimum_required(VERSION 3.12)
|
|
|
|
project(Holesome)
|
|
|
|
|
|
|
|
set(CMAKE_CXX_STANDARD 20)
|
|
|
|
|
|
|
|
# Find and include SFML
|
|
|
|
find_package(SFML 2.5 COMPONENTS graphics audio REQUIRED)
|
|
|
|
include_directories(${SFML_INCLUDE_DIR})
|
|
|
|
|
2023-04-27 23:05:19 +02:00
|
|
|
# Find and include Eigen
|
|
|
|
find_package(Eigen3 3.3 REQUIRED NO_MODULE)
|
|
|
|
include_directories(${EIGEN3_INCLUDE_DIR})
|
|
|
|
|
|
|
|
|
2023-04-26 13:58:10 +02:00
|
|
|
# Set up your project's source files
|
|
|
|
set(SOURCES
|
2023-04-26 22:48:15 +02:00
|
|
|
src/main.cpp
|
|
|
|
src/game/renderer.h
|
2023-04-27 23:05:19 +02:00
|
|
|
src/game/renderer.cpp
|
|
|
|
src/game/game_object.cpp
|
|
|
|
src/game/game_object.h
|
|
|
|
src/game/game.cpp
|
|
|
|
src/game/game.h
|
|
|
|
src/util/easylogging++.cc
|
|
|
|
src/util/easylogging++.h
|
|
|
|
src/coordinates/isometric_coordinate_transformer.cpp
|
|
|
|
src/coordinates/isometric_coordinate_transformer.h
|
|
|
|
src/coordinates/translated_coordinates.cpp
|
|
|
|
src/coordinates/translated_coordinates.h
|
|
|
|
src/coordinates/coordinates.h
|
|
|
|
src/game/input_handler.cpp
|
|
|
|
src/game/input_handler.h
|
|
|
|
src/primitives/circle_object.cpp
|
|
|
|
src/primitives/circle_object.h
|
|
|
|
)
|
2023-04-26 13:58:10 +02:00
|
|
|
|
|
|
|
# Add an executable target
|
|
|
|
add_executable(Holesome ${SOURCES})
|
|
|
|
|
2023-04-27 23:05:19 +02:00
|
|
|
# Link SFML and other libraries to your executable target
|
2023-04-26 13:58:10 +02:00
|
|
|
target_link_libraries(Holesome sfml-graphics sfml-audio)
|
2023-04-27 23:05:19 +02:00
|
|
|
target_link_libraries(Holesome Eigen3::Eigen)
|