2024-05-29 23:11:52 +08:00
|
|
|
# Create executable testbench
|
|
|
|
add_executable(Testbench
|
|
|
|
main.cpp
|
|
|
|
)
|
|
|
|
# Add YYCC as its library
|
|
|
|
target_include_directories(Testbench
|
|
|
|
PRIVATE
|
2024-05-30 16:22:03 +08:00
|
|
|
YYCCommonplace
|
2024-05-29 23:11:52 +08:00
|
|
|
)
|
|
|
|
target_link_libraries(Testbench
|
|
|
|
PRIVATE
|
|
|
|
YYCCommonplace
|
|
|
|
)
|
|
|
|
# Setup C++ standard
|
|
|
|
set_target_properties(Testbench
|
|
|
|
PROPERTIES
|
|
|
|
CXX_STANDARD 17
|
|
|
|
CXX_STANDARD_REQUIRED 17
|
|
|
|
CXX_EXTENSION OFF
|
|
|
|
)
|
|
|
|
# Order build as UTF-8 in MSVC
|
2024-05-30 16:22:03 +08:00
|
|
|
target_compile_options(Testbench
|
2024-05-29 23:11:52 +08:00
|
|
|
PRIVATE
|
|
|
|
$<$<CXX_COMPILER_ID:MSVC>:/utf-8>
|
|
|
|
)
|