19 lines
483 B
CMake
19 lines
483 B
CMake
cmake_minimum_required(VERSION 3.1)
|
|
project(Graph)
|
|
|
|
list(APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake)
|
|
|
|
set(CMAKE_CXX_STANDARD 14)
|
|
|
|
find_package(SDL2 REQUIRED)
|
|
find_package(Vulkan REQUIRED)
|
|
|
|
if(CMAKE_BUILD_TYPE STREQUAL "Debug")
|
|
add_definitions(-DDEBUG)
|
|
endif()
|
|
|
|
add_executable(Graph
|
|
src/main.cpp
|
|
src/renderer.cpp)
|
|
target_link_libraries(Graph PUBLIC SDL2::SDL2 SDL2::SDL2main ${Vulkan_LIBRARY})
|
|
target_include_directories(Graph PUBLIC include ${Vulkan_INCLUDE_DIRS})
|