1
0
Fork 0
blockofighter/CMakeLists.txt

27 lines
611 B
CMake
Raw Normal View History

2021-06-08 23:10:09 +00:00
cmake_minimum_required(VERSION 3.10)
project(blockofighter)
2021-06-08 23:10:09 +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)
2021-06-08 23:10:09 +00:00
find_package(OpenGL)
include_directories(
2021-06-08 23:10:09 +00:00
${SDL2_INCLUDE_DIRS}
${SDL2IMAGE_INCLUDE_DIRS}
${SDL2MIXER_INCLUDE_DIRS}
${OPENGL_INCLUDE_DIRS}
)
target_link_libraries(blockofighter
2021-06-08 23:10:09 +00:00
${SDL2_LIBRARIES}
${SDL2IMAGE_LIBRARIES}
${SDL2MIXER_LIBRARIES}
${OPENGL_LIBRARIES}
)