2024-05-29 23:11:52 +08:00
|
|
|
# Create executable testbench
|
2024-06-06 13:16:55 +08:00
|
|
|
add_executable(YYCCTestbench "")
|
2024-06-03 14:24:05 +08:00
|
|
|
# Setup testbench sources
|
2024-06-06 13:16:55 +08:00
|
|
|
target_sources(YYCCTestbench
|
2024-06-03 14:24:05 +08:00
|
|
|
PRIVATE
|
2024-06-15 21:53:45 +08:00
|
|
|
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
|
2025-06-30 08:45:18 +08:00
|
|
|
yycc/num/parse.cpp
|
|
|
|
yycc/num/stringify.cpp
|
2024-05-29 23:11:52 +08:00
|
|
|
)
|
2025-07-14 09:13:47 +08:00
|
|
|
target_sources(YYCCTestbench
|
|
|
|
PRIVATE
|
|
|
|
FILE_SET HEADERS
|
|
|
|
FILES
|
2025-07-31 22:25:14 +08:00
|
|
|
yycc/encoding/utf_literal.hpp
|
2025-07-14 09:13:47 +08:00
|
|
|
)
|
2025-06-20 23:38:34 +08:00
|
|
|
# Setup headers
|
2024-06-06 13:16:55 +08:00
|
|
|
target_include_directories(YYCCTestbench
|
2025-06-20 23:38:34 +08:00
|
|
|
PUBLIC
|
|
|
|
"${CMAKE_CURRENT_LIST_DIR}"
|
2024-05-29 23:11:52 +08:00
|
|
|
)
|
2025-06-20 23:38:34 +08:00
|
|
|
# Setup libraries
|
2024-06-06 13:16:55 +08:00
|
|
|
target_link_libraries(YYCCTestbench
|
2024-05-29 23:11:52 +08:00
|
|
|
PRIVATE
|
|
|
|
YYCCommonplace
|
2025-06-20 23:38:34 +08:00
|
|
|
GTest::gtest_main
|
2024-05-29 23:11:52 +08:00
|
|
|
)
|
2024-06-03 14:24:05 +08:00
|
|
|
|
2025-06-20 23:38:34 +08:00
|
|
|
# Discover all test
|
|
|
|
include(GoogleTest)
|
|
|
|
gtest_discover_tests(YYCCTestbench)
|