chore: update CMakeLists

- update the use of target_sources() to remove duplicated header file declarations.
	- thx Gary Wang
This commit is contained in:
2024-06-15 21:53:45 +08:00
parent 5481898ad9
commit 8465d80a54
3 changed files with 32 additions and 47 deletions

View File

@ -3,7 +3,7 @@ add_executable(YYCCTestbench "")
# Setup testbench sources
target_sources(YYCCTestbench
PRIVATE
${CMAKE_CURRENT_LIST_DIR}/main.cpp
main.cpp
)
# Add YYCC as its library
target_include_directories(YYCCTestbench