Advertisement
canemandarinesco

CMakeLists

Jun 20th, 2020
1,041
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CMake 0.42 KB | None | 0 0
  1. cmake_minimum_required(VERSION 3.18)
  2.  
  3. project(Game VERSION 1.0)
  4.  
  5. find_package(SDL2 REQUIRED)
  6. if(SDL2_FOUND)
  7.     message(FATAL_ERROR "SDL2 not found")
  8. else()
  9.     message("SDL2 found")
  10. endif()
  11.  
  12. include_directories(${SDL2_INCLUDE_DIRS})
  13.  
  14. add_executable(Game main.cpp)
  15. target_link_libraries(Game ${SDL2_LIBRARIES})
  16.  
  17. message("SDL2_INCLUDE_DIRS -> ${SDL2_INCLUDE_DIRS}")
  18. message("SDL2_LIBRARIES -> ${SDL2_LIBRARIES}")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement