Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- cmake_minimum_required(VERSION 3.18)
- project(Game VERSION 1.0)
- find_package(SDL2 REQUIRED)
- if(SDL2_FOUND)
- message(FATAL_ERROR "SDL2 not found")
- else()
- message("SDL2 found")
- endif()
- include_directories(${SDL2_INCLUDE_DIRS})
- add_executable(Game main.cpp)
- target_link_libraries(Game ${SDL2_LIBRARIES})
- message("SDL2_INCLUDE_DIRS -> ${SDL2_INCLUDE_DIRS}")
- message("SDL2_LIBRARIES -> ${SDL2_LIBRARIES}")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement