Files
YYCCommonplace/testbench/CMakeLists.txt

64 lines
1.4 KiB
CMake
Raw Normal View History

# Create executable testbench
add_executable(YYCCTestbench "")
# Setup testbench sources
target_sources(YYCCTestbench
PRIVATE
2025-08-19 20:53:51 +08:00
main.cpp
shared/literals.cpp
yycc/macro/version_cmp.cpp
yycc/macro/os_detector.cpp
yycc/macro/compiler_detector.cpp
yycc/macro/endian_detector.cpp
yycc/macro/ptr_size_detector.cpp
yycc/macro/stl_detector.cpp
yycc/flag_enum.cpp
2025-06-20 23:38:34 +08:00
yycc/constraint.cpp
yycc/constraint/builder.cpp
yycc/patch/ptr_pad.cpp
yycc/patch/fopen.cpp
2025-08-14 20:17:02 +08:00
yycc/rust/env.cpp
2025-06-20 23:38:34 +08:00
yycc/string/reinterpret.cpp
yycc/string/op.cpp
yycc/string/stream.cpp
yycc/num/parse.cpp
yycc/num/stringify.cpp
yycc/num/op.cpp
yycc/num/safe_cast.cpp
yycc/num/safe_op.cpp
yycc/encoding/stl.cpp
yycc/encoding/windows.cpp
yycc/encoding/iconv.cpp
yycc/windows/com.cpp
2025-08-21 11:00:04 +08:00
yycc/windows/dialog.cpp
yycc/windows/winfct.cpp
2025-08-22 21:51:32 +08:00
yycc/windows/console.cpp
2025-08-12 16:32:59 +08:00
yycc/carton/pycodec.cpp
yycc/carton/termcolor.cpp
yycc/carton/wcwidth.cpp
2025-08-19 20:53:51 +08:00
yycc/carton/tabulate.cpp
)
target_sources(YYCCTestbench
PRIVATE
FILE_SET HEADERS
FILES
shared/literals.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)