2019-06-03 05:49:35 -04:00
|
|
|
Header only version:
|
|
|
|
==================================================================
|
|
|
|
Just copy the files to your build tree and use a C++11 compiler.
|
2019-06-03 05:50:27 -04:00
|
|
|
Or use CMake:
|
2019-06-03 05:50:52 -04:00
|
|
|
add_executable(example_header_only example.cpp)
|
|
|
|
target_link_libraries(example_header_only spdlog::spdlog_header_only)
|
2019-06-03 05:51:20 -04:00
|
|
|
|
2019-06-03 05:48:43 -04:00
|
|
|
|
2019-06-03 05:49:35 -04:00
|
|
|
Compiled library version:
|
|
|
|
==================================================================
|
2019-06-03 05:50:27 -04:00
|
|
|
CMake:
|
2019-06-03 05:50:52 -04:00
|
|
|
add_executable(example example.cpp)
|
|
|
|
target_link_libraries(example spdlog::spdlog)
|
2019-06-03 05:51:20 -04:00
|
|
|
|
2019-06-03 05:50:27 -04:00
|
|
|
|
|
|
|
Or copy src/spdlog.cpp to your build tree and pass the -DSPDLOG_COMPILED_LIB to the compiler.
|
2016-07-08 10:50:13 -04:00
|
|
|
|
|
|
|
Tested on:
|
|
|
|
gcc 4.8.1 and above
|
|
|
|
clang 3.5
|
|
|
|
Visual Studio 2013
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-06-03 05:48:43 -04:00
|
|
|
|