# Create executable testbench add_executable(YYCCTestbench "") # Setup testbench sources target_sources(YYCCTestbench PRIVATE ${CMAKE_CURRENT_LIST_DIR}/main.cpp ) # Add YYCC as its library target_include_directories(YYCCTestbench PRIVATE YYCCommonplace ) target_link_libraries(YYCCTestbench PRIVATE YYCCommonplace ) # Setup C++ standard set_target_properties(YYCCTestbench PROPERTIES CXX_STANDARD 17 CXX_STANDARD_REQUIRED 17 CXX_EXTENSION OFF ) # Order Unicode charset for private using target_compile_definitions(YYCCTestbench PRIVATE $<$:UNICODE> $<$:_UNICODE> ) # Order build as UTF-8 in MSVC target_compile_options(YYCCTestbench PRIVATE $<$:/utf-8> ) # Install binary install(TARGETS YYCCTestbench EXPORT YYCCTestbenchTargets LIBRARY DESTINATION lib ARCHIVE DESTINATION lib RUNTIME DESTINATION bin INCLUDES DESTINATION include )