holesome/CMakeLists.txt
2023-05-03 15:31:52 +02:00

52 lines
1.6 KiB
CMake

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})
# Find and include Eigen
find_package(Eigen3 3.3 REQUIRED NO_MODULE)
include_directories(${EIGEN3_INCLUDE_DIR})
# Find and include ReactPhysics3D
find_package(ReactPhysics3D REQUIRED)
# Set up your project's source files
set(SOURCES
src/main.cpp
src/game/game_object.cpp
src/game/game_object.h
src/game/game.cpp
src/game/game.h
src/logging/easylogging++.cc
src/logging/easylogging++.h
src/coordinates/coordinate_transformer.cpp
src/coordinates/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
src/game/game_factory.cpp
src/game/game_factory.hpp src/config.h)
set(PHYSICS_00_SOURCES
src/prototypes/physics_00.cpp
)
# Add an executable target
add_executable(Holesome ${SOURCES})
add_executable(Physics_00 ${PHYSICS_00_SOURCES})
# Link SFML and other libraries to your executable target
target_link_libraries(Holesome sfml-graphics sfml-audio)
target_link_libraries(Holesome Eigen3::Eigen)
target_link_libraries(Holesome ReactPhysics3D::ReactPhysics3D)
target_link_libraries(Physics_00 ReactPhysics3D::ReactPhysics3D)