2021-06-08 23:10:09 +00:00
|
|
|
cmake_minimum_required(VERSION 3.10)
|
|
|
|
|
2014-02-16 14:24:25 +00:00
|
|
|
project(blockofighter)
|
2021-06-08 23:10:09 +00:00
|
|
|
|
2014-02-16 14:24:25 +00:00
|
|
|
aux_source_directory(src SRC_LIST)
|
|
|
|
add_executable(${PROJECT_NAME} ${SRC_LIST})
|
|
|
|
|
2021-06-08 23:10:09 +00:00
|
|
|
include(FindPkgConfig)
|
|
|
|
pkg_search_module(SDL2 REQUIRED sdl2)
|
|
|
|
pkg_search_module(SDL2IMAGE REQUIRED SDL2_image>=2.0.0)
|
|
|
|
pkg_search_module(SDL2MIXER REQUIRED SDL2_mixer>=2.0.0)
|
2014-02-16 14:24:25 +00:00
|
|
|
|
2021-06-08 23:10:09 +00:00
|
|
|
find_package(OpenGL)
|
2014-02-16 14:24:25 +00:00
|
|
|
|
|
|
|
include_directories(
|
2021-06-08 23:10:09 +00:00
|
|
|
${SDL2_INCLUDE_DIRS}
|
|
|
|
${SDL2IMAGE_INCLUDE_DIRS}
|
|
|
|
${SDL2MIXER_INCLUDE_DIRS}
|
|
|
|
${OPENGL_INCLUDE_DIRS}
|
2014-02-16 14:24:25 +00:00
|
|
|
)
|
|
|
|
target_link_libraries(blockofighter
|
2021-06-08 23:10:09 +00:00
|
|
|
${SDL2_LIBRARIES}
|
|
|
|
${SDL2IMAGE_LIBRARIES}
|
|
|
|
${SDL2MIXER_LIBRARIES}
|
|
|
|
${OPENGL_LIBRARIES}
|
2014-02-16 14:24:25 +00:00
|
|
|
)
|