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

20 lines
484 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)
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-09-26 17:51:22 -04:00
2018-09-28 21:08:57 -04:00
if(${CMAKE_BUILD_TYPE} STREQUAL DEBUG)
add_definitions(-DDEBUG)
endif()
add_executable(Graph
2018-09-27 22:51:26 -04:00
src/main.cpp
src/renderer.cpp)
2018-09-27 00:22:33 -04:00
target_link_libraries(Graph PUBLIC SDL2::SDL2 SDL2::SDL2main ${Vulkan_LIBRARY})
2018-09-27 22:51:26 -04:00
target_include_directories(Graph PUBLIC include ${Vulkan_INCLUDE_DIRS})