clang format

This commit is contained in:
gabime
2023-10-01 18:01:02 +03:00
parent 754838c558
commit 57868277db
7 changed files with 31 additions and 30 deletions

View File

@@ -8,14 +8,11 @@ if(NOT TARGET spdlog)
find_package(spdlog REQUIRED)
endif()
add_executable(example example.cpp)
target_link_libraries(example PRIVATE spdlog::spdlog $<$<BOOL:${MINGW}>:ws2_32>)
# copy dll to the executable folder for msvc
if(MSVC AND (SPDLOG_BUILD_SHARED OR BUILD_SHARED_LIBS))
add_custom_command(TARGET example POST_BUILD COMMAND ${CMAKE_COMMAND} -E copy_if_different
$<TARGET_FILE:spdlog> $<TARGET_FILE_DIR:example>)
add_custom_command(TARGET example POST_BUILD COMMAND ${CMAKE_COMMAND} -E copy_if_different $<TARGET_FILE:spdlog>
$<TARGET_FILE_DIR:example>)
endif()