old-Testgame/CMakeLists.txt

14 lines
568 B
Text
Raw Permalink Normal View History

2016-08-27 18:54:34 +00:00
cmake_minimum_required(VERSION 2.6)
project(testgame)
2016-08-27 19:59:52 +00:00
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -I..")
set(CMAKE_LD_FLAGS "${CMAKE_LD_FLAGS} -L/usr/local/bin")
2016-08-28 13:25:35 +00:00
add_executable(testgame main.cpp renderer/main.cpp renderer/shader.cpp renderer/shapes/triangle.cpp renderer/shapes/quad.cpp)
2016-08-27 19:59:52 +00:00
INCLUDE(FindPkgConfig)
PKG_SEARCH_MODULE(SDL2 REQUIRED sdl2)
INCLUDE_DIRECTORIES(${SDL2_INCLUDE_DIRS})
find_library(SDL SDL2)
find_library(GLEW GLEW)
find_library(GL GL)
TARGET_LINK_LIBRARIES(testgame ${SDL} ${GLEW} ${GL})
2016-08-27 18:54:34 +00:00
install(TARGETS testgame RUNTIME DESTINATION bin)