Files
YYCCommonplace/testbench/CMakeLists.txt

35 lines
678 B
CMake
Raw Normal View History

# Create executable testbench
add_executable(YYCCTestbench "")
# Setup testbench sources
target_sources(YYCCTestbench
PRIVATE
main.cpp
2025-06-20 23:38:34 +08:00
yycc/constraint.cpp
yycc/constraint/builder.cpp
yycc/string/op.cpp
yycc/string/reinterpret.cpp
yycc/num/parse.cpp
yycc/num/stringify.cpp
)
target_sources(YYCCTestbench
PRIVATE
FILE_SET HEADERS
FILES
yycc/encoding/utf_literal.hpp
)
2025-06-20 23:38:34 +08:00
# Setup headers
target_include_directories(YYCCTestbench
2025-06-20 23:38:34 +08:00
PUBLIC
"${CMAKE_CURRENT_LIST_DIR}"
)
2025-06-20 23:38:34 +08:00
# Setup libraries
target_link_libraries(YYCCTestbench
PRIVATE
YYCCommonplace
2025-06-20 23:38:34 +08:00
GTest::gtest_main
)
2025-06-20 23:38:34 +08:00
# Discover all test
include(GoogleTest)
gtest_discover_tests(YYCCTestbench)