umbra/projs/shadow/shadow-engine/shadow-assets/CMakeLists.txt

21 lines
536 B
CMake
Raw Normal View History

set(CMAKE_CXX_STANDARD 20)
# Set up Catch2 testing
list(APPEND CMAKE_MODULE_PATH "cmake")
enable_testing()
# Set up asset sourceset
2023-03-10 15:54:29 +00:00
FILE(GLOB_RECURSE SOURCES src/**.cpp src/**.h)
FILE(GLOB_RECURSE TESTS test/*.cpp)
2023-03-10 15:54:29 +00:00
include_directories(src/)
add_library(shadow-asset ${SOURCES})
# Set up test executable
add_executable(shadow-asset-test ${TESTS})
target_link_libraries(shadow-asset-test PRIVATE Catch2::Catch2 shadow-utils)
# Enable testing on the executable
2023-03-10 15:54:29 +00:00
#include(CTest)
#include(Catch2)
#catch_discover_tests(shadow-asset-test)