CMakeLists.txt 490 B

12345678910111213141516
  1. cmake_minimum_required(VERSION 3.7)
  2. project(HelloSDL)
  3. #set(CMAKE_MODULE_PATH "/Users/nathan/Programmation/ressources/CMake")
  4. set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR})
  5. find_package(SDL2)
  6. find_package(SDL2_image)
  7. include_directories(${SDL2_INCLUDE_DIR} ${SDL2_IMAGE_INCLUDE_DIR})
  8. set(CMAKE_CXX_STANDARD 11)
  9. set(SOURCE_FILES main.cpp texturer.h texturer.cpp Input.h Input.cpp)
  10. add_executable(HelloSDL ${SOURCE_FILES})
  11. target_link_libraries(HelloSDL ${SDL2_LIBRARY} ${SDL2_IMAGE_LIBRARY})