26 lines
611 B
CMake
26 lines
611 B
CMake
cmake_minimum_required(VERSION 3.10)
|
|
|
|
project(blockofighter)
|
|
|
|
aux_source_directory(src SRC_LIST)
|
|
add_executable(${PROJECT_NAME} ${SRC_LIST})
|
|
|
|
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)
|
|
|
|
find_package(OpenGL)
|
|
|
|
include_directories(
|
|
${SDL2_INCLUDE_DIRS}
|
|
${SDL2IMAGE_INCLUDE_DIRS}
|
|
${SDL2MIXER_INCLUDE_DIRS}
|
|
${OPENGL_INCLUDE_DIRS}
|
|
)
|
|
target_link_libraries(blockofighter
|
|
${SDL2_LIBRARIES}
|
|
${SDL2IMAGE_LIBRARIES}
|
|
${SDL2MIXER_LIBRARIES}
|
|
${OPENGL_LIBRARIES}
|
|
)
|