Archived
1
Fork 0
This repository has been archived on 2025-04-12. You can view files and clone it, but cannot push or open issues or pull requests.
graph/CMakeLists.txt

35 lines
763 B
Text
Raw Normal View History

2018-09-26 17:51:22 -04:00
cmake_minimum_required(VERSION 3.1)
project(Graph)
list(APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake)
include(cmake/BuildShaders.cmake)
include(cmake/CopyData.cmake)
2018-09-27 22:47:56 -04:00
set(CMAKE_CXX_STANDARD 14)
2018-09-26 17:51:22 -04:00
find_package(SDL2 REQUIRED)
2018-09-27 00:22:33 -04:00
find_package(Vulkan REQUIRED)
2018-10-16 09:18:42 -04:00
find_package(assimp REQUIRED)
2018-09-26 17:51:22 -04:00
2018-09-29 20:27:07 -04:00
if(CMAKE_BUILD_TYPE STREQUAL "Debug")
2018-09-28 21:08:57 -04:00
add_definitions(-DDEBUG)
endif()
2018-10-16 08:49:25 -04:00
add_executable(Graph
2018-09-27 22:51:26 -04:00
src/main.cpp
2018-10-15 19:52:16 -04:00
src/renderer.cpp
2018-10-17 10:06:38 -04:00
src/worldpass.cpp
src/postpass.cpp)
2018-10-16 12:52:13 -04:00
target_link_libraries(Graph PUBLIC SDL2::SDL2 SDL2::SDL2main Vulkan::Vulkan assimp::assimp)
target_include_directories(Graph PUBLIC include)
2018-10-15 19:52:16 -04:00
add_shaders(Graph
shaders/triangle.vert
shaders/triangle.frag
shaders/post.vert
shaders/post.frag)
2018-10-16 08:49:25 -04:00
add_data(Graph
data/suzanne.obj)