-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
32 lines (23 loc) · 1.09 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# CMakeList.txt : CMake project for PNTrianglesQuads, include source and define
# project specific logic here.
#
cmake_minimum_required (VERSION 3.8)
project ("PNTrianglesQuads")
include_directories("common")
file(GLOB_RECURSE COMMON_SOURCES "common/*.cpp" "common/*.hpp")
file(GLOB SHADERS "shaders/*.glsl" "/*.glsl")
# Add source to this project's executable.
add_executable (${PROJECT_NAME} "PNTrianglesQuads.cpp" "PNTrianglesQuads.h" ${COMMON_SOURCES} ${SHADERS} )
file(COPY ${SHADERS} DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/shaders)
set(CMAKE_TOOLCHAIN_FILE "C:/src/vcpkg/scripts/buildsystems/vcpkg.cmake")
set(CMAKE_PREFIX_PATH "C:/src/vcpkg/installed/x64-windows/share")
if (CMAKE_VERSION VERSION_GREATER 3.12)
set_property(TARGET PNTrianglesQuads PROPERTY CXX_STANDARD 20)
endif()
# TODO: Add tests and install targets if needed.
find_package(OpenGL REQUIRED)
find_package(GLEW REQUIRED)
find_package(glfw3 CONFIG REQUIRED)
find_package(glm CONFIG REQUIRED)
find_package(imgui CONFIG REQUIRED)
target_link_libraries(${PROJECT_NAME} PRIVATE OpenGL::GL GLEW::GLEW glfw glm::glm imgui::imgui)