chore: switch to CMake build system.
- switch to CMake build system and delete original project files because Visual Studio supports CMake project debugging. - there is a UTF-8 bug for library after switching, but I don't know why it happends. maybe fixed in future.
This commit is contained in:
25
testbench/CMakeLists.txt
Normal file
25
testbench/CMakeLists.txt
Normal file
@ -0,0 +1,25 @@
|
||||
# Create executable testbench
|
||||
add_executable(Testbench
|
||||
main.cpp
|
||||
)
|
||||
# Add YYCC as its library
|
||||
target_include_directories(Testbench
|
||||
PRIVATE
|
||||
|
||||
)
|
||||
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
|
||||
target_compile_options(YYCCommonplace
|
||||
PRIVATE
|
||||
$<$<CXX_COMPILER_ID:MSVC>:/utf-8>
|
||||
)
|
Reference in New Issue
Block a user