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-06-01 23:25:33 +02:00
|
|
|
# Find and include Box2D
|
|
|
|
#find_package(Box2D REQUIRED)
|
2023-05-03 01:33:05 +02:00
|
|
|
|
2023-04-27 23:05:19 +02:00
|
|
|
|
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
|
2023-04-27 23:05:19 +02:00
|
|
|
src/game/game_object.cpp
|
|
|
|
src/game/game_object.h
|
|
|
|
src/game/game.h
|
2023-05-17 14:13:39 +02:00
|
|
|
src/game/game.cpp
|
2023-05-03 15:31:52 +02:00
|
|
|
src/logging/easylogging++.cc
|
|
|
|
src/logging/easylogging++.h
|
2023-05-03 01:33:05 +02:00
|
|
|
src/coordinates/coordinate_transformer.cpp
|
|
|
|
src/coordinates/coordinate_transformer.h
|
2023-04-27 23:05:19 +02:00
|
|
|
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-28 22:59:24 +02:00
|
|
|
src/game/game_factory.cpp
|
2023-05-05 23:35:35 +02:00
|
|
|
src/game/game_factory.hpp
|
|
|
|
src/config.h
|
|
|
|
src/debug/grid_debug_layer.cpp
|
|
|
|
src/debug/grid_debug_layer.h
|
2023-05-07 12:27:11 +02:00
|
|
|
src/game/input/input_mapper.h
|
2023-05-17 14:13:39 +02:00
|
|
|
src/game/input/input_mapper.cpp
|
2023-05-08 18:20:55 +02:00
|
|
|
src/game/input/direction.h
|
|
|
|
src/game/input/direction.cpp
|
|
|
|
src/game/player/player.cpp
|
|
|
|
src/game/player/player.hpp
|
2023-05-17 23:22:45 +02:00
|
|
|
src/game/input/key_features.hpp
|
2023-05-23 23:38:37 +02:00
|
|
|
src/game/camera/tracking_view.cpp
|
|
|
|
src/game/camera/tracking_view.h
|
2023-05-17 14:13:39 +02:00
|
|
|
src/utilities/smart_list.cpp
|
|
|
|
src/utilities/smart_list.h
|
|
|
|
src/utilities/vector_utils.hpp
|
2023-05-23 23:38:37 +02:00
|
|
|
src/game/camera/ITrackable.h
|
2023-05-20 00:10:03 +02:00
|
|
|
src/game/input/input_identity.h
|
|
|
|
src/utilities/magic_enum.hpp
|
|
|
|
src/game/player/player_spawner.cpp
|
2023-05-24 14:00:51 +02:00
|
|
|
src/game/player/player_spawner.hpp
|
2023-06-01 23:25:33 +02:00
|
|
|
src/game/camera/tracking_area.h
|
|
|
|
src/game/camera/tracking_view_options.hpp
|
|
|
|
src/game/depth_renderer.cpp
|
|
|
|
src/game/depth_renderer.hpp)
|
2023-04-26 13:58:10 +02:00
|
|
|
|
2023-05-03 01:33:05 +02:00
|
|
|
set(PHYSICS_00_SOURCES
|
2023-05-05 23:35:35 +02:00
|
|
|
src/prototypes/physics_00.cpp)
|
|
|
|
|
|
|
|
set(MATH_00_SOURCES
|
|
|
|
src/prototypes/math_00.cpp)
|
2023-05-03 01:33:05 +02:00
|
|
|
|
2023-04-26 13:58:10 +02:00
|
|
|
# Add an executable target
|
|
|
|
add_executable(Holesome ${SOURCES})
|
2023-05-03 01:33:05 +02:00
|
|
|
add_executable(Physics_00 ${PHYSICS_00_SOURCES})
|
2023-04-26 13:58:10 +02:00
|
|
|
|
2023-05-05 23:35:35 +02:00
|
|
|
add_executable(Math_00 ${MATH_00_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)
|
2023-06-01 23:25:33 +02:00
|
|
|
#target_link_libraries(Holesome Box2D::Box2D)
|
2023-05-03 01:33:05 +02:00
|
|
|
|
2023-06-01 23:25:33 +02:00
|
|
|
#target_link_libraries(Physics_00 Box2D::Box2D)
|
2023-05-05 23:35:35 +02:00
|
|
|
|
|
|
|
target_link_libraries(Math_00 Eigen3::Eigen)
|