Frames

Untitled

0
1cmake_minimum_required(VERSION 3.7.1)
2
3project(func)
4
5include(CTest)
6include(Catch.cmake)
7
8set_property(GLOBAL PROPERTY USE_FOLDERS ON)
9
10list(APPEND APP_FILES main.cpp)
11list(APPEND APP_FILES func.h)
12list(APPEND APP_FILES events.h)
13
14set (APP_NAME "func_tests")
15add_executable(${APP_NAME} ${APP_FILES})
16set_property(TARGET ${APP_NAME} PROPERTY CXX_STANDARD 20)
17set_property(TARGET ${APP_NAME} PROPERTY CXX_STANDARD_REQUIRED ON)
18set_target_properties(${APP_NAME} PROPERTIES LINK_FLAGS /SUBSYSTEM:CONSOLE)
19
20## VULKAN
21if (NOT "$ENV{VK_SDK_PATH}" STREQUAL "")
22 target_include_directories(${APP_NAME} PRIVATE "$ENV{VK_SDK_PATH}/Include")
23 target_link_directories(${APP_NAME} PRIVATE "$ENV{VK_SDK_PATH}/Lib")
24 target_link_libraries(${APP_NAME} vulkan-1.lib)
25 message("Vulkan, include @ [$ENV{VK_SDK_PATH}/Include], lib @ [$ENV{VK_SDK_PATH}/Lib]")
26endif()
27
28catch_discover_tests(${APP_NAME})