mirror of
https://github.com/gabime/spdlog.git
synced 2025-09-29 09:59:33 +08:00
clang format
This commit is contained in:
@@ -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()
|
||||
|
||||
|
Reference in New Issue
Block a user