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)
|
|
|
|
|
2021-11-21 06:23:53 +00:00
|
|
|
# Embed shaders
|
|
|
|
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)
|
2021-11-21 06:23:53 +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)
|