Created
May 18, 2017 06:22
-
-
Save kovrov/9d0f84c356c4863df99dfa52968a3ad8 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# https://github.com/scanberg/hbao | |
cmake_minimum_required (VERSION 3.1) | |
project (hbao) | |
find_package (PkgConfig REQUIRED) | |
file (GLOB_RECURSE SRC_LIST src/*.cpp src/*.h) | |
add_executable (${PROJECT_NAME} ${SRC_LIST}) | |
set_property (TARGET ${PROJECT_NAME} PROPERTY CXX_STANDARD 14) | |
# OPENGL | |
find_package (OpenGL REQUIRED) | |
target_link_libraries (${PROJECT_NAME} ${OPENGL_LIBRARIES}) | |
# GLEW | |
find_package (GLEW REQUIRED) | |
target_link_libraries (${PROJECT_NAME} ${GLEW_LIBRARIES}) | |
# glfw | |
find_package (glfw3 REQUIRED) | |
target_link_libraries (${PROJECT_NAME} glfw) | |
include_directories (${CMAKE_SOURCE_DIR}/src) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment