SimpleEngine/examples/dev_testing/CMakeLists.txt

25 lines
776 B
CMake
Raw Normal View History

2021-11-20 05:48:47 +00:00
cmake_minimum_required (VERSION 3.6)
project(DevTesting DESCRIPTION "A testing project for engine developers.")
add_executable(dev_testing src/main.cpp)
# Link headers and source files.
file(GLOB_RECURSE source_list src/*.cpp)
target_sources(dev_testing PRIVATE ${source_list})
target_include_directories(dev_testing PUBLIC include)
# Embed shaders
2022-10-12 03:16:52 +00:00
#file(GLOB_RECURSE shaders_list resources/shaders/*.glsl)
#cmrc_add_resource_library(
# resource_shaders
# WHENCE resources/shaders
# PREFIX shaders
# ${shaders_list}
#)
2021-11-20 05:48:47 +00:00
# Link simpleengine
target_link_libraries(dev_testing PUBLIC simpleengine)
2022-10-12 03:16:52 +00:00
#target_link_libraries(dev_testing PRIVATE resource_shaders)
2021-11-20 05:48:47 +00:00
# Set standard to C++20
set_target_properties(dev_testing PROPERTIES CXX_STANDARD 20 CXX_EXTENSIONS OFF)