-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
42 lines (35 loc) · 1.19 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
33
34
35
36
37
38
39
40
41
42
cmake_minimum_required(VERSION 3.19)
project(main)
set(CMAKE_CXX_STANDARD 20)
set(
HEADERS
include/lit/gl/shader.hpp
include/lit/gl/program.hpp
include/lit/gl/frame_buffer.hpp
include/lit/gl/uniform.hpp
include/lit/gl/texture.hpp
include/lit/gl/shader.hpp
include/lit/rendering/pipeline_node.hpp
include/lit/rendering/pipeline.hpp)
set(
SOURCES
src/gl/shader.cpp
src/gl/program.cpp
src/gl/texture.cpp
src/gl/frame_buffer.cpp
src/gl/shader.cpp
src/rendering/pipeline.cpp
src/rendering/shaderx.cpp
src/rendering/pipeline_node.cpp)
include(FetchContent)
if (NOT TARGET glm)
FetchContent_Declare(glm GIT_REPOSITORY https://github.com/g-truc/glm GIT_TAG master)
FetchContent_MakeAvailable(glm)
endif ()
if (NOT TARGET application)
FetchContent_Declare(application GIT_REPOSITORY https://github.com/LiteEngine/Application GIT_TAG master)
FetchContent_MakeAvailable(application)
endif ()
add_executable(main main.cpp ${HEADERS} ${SOURCES})
target_include_directories(main PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/include")
target_link_libraries(main glm application)