25 lines
459 B
CMake
25 lines
459 B
CMake
cmake_minimum_required(VERSION 3.28)
|
|
project(Test-VFS LANGUAGES CXX)
|
|
|
|
|
|
enable_testing()
|
|
|
|
|
|
set(CMAKE_CXX_STANDARD 20)
|
|
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
|
|
|
|
|
# Test executable
|
|
add_executable(Test-VFS
|
|
test-restriction.cpp
|
|
)
|
|
# Libraries
|
|
target_link_libraries(Test-VFS PRIVATE
|
|
# Code to test
|
|
VFS
|
|
)
|
|
# Copy the assets to run the tests
|
|
file(COPY _assets DESTINATION ${CMAKE_CURRENT_BINARY_DIR})
|
|
|
|
# Test
|
|
add_test(NAME Test-VFS COMMAND Test-VFS)
|