21 lines
608 B
CMake
21 lines
608 B
CMake
|
project(opengl-playground)
|
||
|
|
||
|
#set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake")
|
||
|
|
||
|
cmake_minimum_required(VERSION 2.8)
|
||
|
find_package(PkgConfig REQUIRED)
|
||
|
pkg_check_modules(EPOXY REQUIRED epoxy)
|
||
|
pkg_check_modules(SDL2 REQUIRED sdl2)
|
||
|
|
||
|
#find_package(OpenCL REQUIRED)
|
||
|
|
||
|
include_directories("${CMAKE_CURRENT_SOURCE_DIR}/include" ${EPOXY_INCLUDE_DIRS} ${SDL2_INCLUDE_DIRS})
|
||
|
|
||
|
aux_source_directory("src" SOURCES)
|
||
|
add_compile_options(-Wall)
|
||
|
|
||
|
add_executable(${PROJECT_NAME} ${SOURCES})
|
||
|
target_link_libraries(${PROJECT_NAME} m pthread ${EPOXY_LIBRARIES} ${SDL2_LIBRARIES})
|
||
|
install (TARGETS ${PROJECT_NAME} DESTINATION bin)
|
||
|
|