mirror of
https://github.com/gabime/spdlog.git
synced 2025-09-28 17:19:34 +08:00
CMake refactoring to functions
This commit is contained in:
@@ -13,12 +13,14 @@ endif()
|
||||
# Example of using pre-compiled library
|
||||
#---------------------------------------------------------------------------------------
|
||||
add_executable(example example.cpp)
|
||||
spdlog_enable_warnings(example)
|
||||
target_link_libraries(example spdlog::spdlog)
|
||||
|
||||
#---------------------------------------------------------------------------------------
|
||||
# Example of using header-only library
|
||||
#---------------------------------------------------------------------------------------
|
||||
add_executable(example_header_only example.cpp)
|
||||
spdlog_enable_warnings(example_header_only)
|
||||
target_link_libraries(example_header_only spdlog::spdlog_header_only)
|
||||
|
||||
# Create logs directory
|
||||
|
Reference in New Issue
Block a user