chore: update CMakeLists.txt

- update CMakeLists.txt. Add an option to disable the generation of testbench.
- rename testbench name to YYCCTestbench.
- allow emoji test in code.
This commit is contained in:
2024-06-06 13:16:55 +08:00
parent 642db411f5
commit 019034a9c2
3 changed files with 15 additions and 10 deletions

View File

@ -4,9 +4,14 @@ project(YYCC
LANGUAGES CXX
)
# Provide options
option(YYCC_BUILD_TESTBENCH "Build testbench of YYCCommonplace." OFF)
# Import 2 build targets
add_subdirectory(src)
add_subdirectory(testbench)
if (YYCC_BUILD_TESTBENCH)
add_subdirectory(testbench)
endif ()
# Install project package infos
# Package target