Using CMake

This commit is contained in:
2022-10-13 20:56:53 -04:00
parent 391fcedc37
commit 35e776c6e2
4493 changed files with 1939 additions and 1964607 deletions

18
CMakeLists.txt Normal file
View File

@@ -0,0 +1,18 @@
project(BeagleRescue)
cmake_minimum_required(VERSION 2.8)
# Point to our own cmake modules
list(APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/sdl2)
# Find SDL2
find_package(SDL2 REQUIRED)
find_package(SDL2_image REQUIRED)
find_package(SDL2_mixer REQUIRED)
# Add global definitions
add_definitions("-Wall")
include_directories(${SDL2_INCLUDE_DIR})
add_executable(BeagleRescue src/game/Main.cpp)
install(TARGETS BeagleRescue DESTINATION bin)
target_link_libraries(BeagleRescue ${SDL2_LIBRARIES} SDL2::Mixer SDL::Image)