CMake refactoring to functions

This commit is contained in:
gabime
2019-06-10 18:09:36 +03:00
parent 80740f0e46
commit 68a0193d95
7 changed files with 57 additions and 53 deletions

View File

@@ -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