Initial work on the WBT parser and its test suite
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
cmake_minimum_required(VERSION 4.2)
|
||||
project(wb)
|
||||
|
||||
set(CMAKE_CXX_STANDARD 26)
|
||||
|
||||
add_executable(wb main.cpp)
|
||||
target_sources(wb
|
||||
PUBLIC
|
||||
FILE_SET CXX_MODULES FILES
|
||||
wbt/wbt.cpp
|
||||
)
|
||||
|
||||
# Test Executables
|
||||
add_executable(test_parse test_parse.cpp)
|
||||
target_sources(test_parse
|
||||
PUBLIC
|
||||
FILE_SET CXX_MODULES FILES
|
||||
wbt/wbt.cpp
|
||||
)
|
||||
|
||||
# Copy test files to build folder
|
||||
add_custom_target(copy_test_files ALL
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_directory
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/test
|
||||
${CMAKE_CURRENT_BINARY_DIR}/test
|
||||
COMMENT "Copying test files to build directory"
|
||||
)
|
||||
add_dependencies(test_parse copy_test_files)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user