spdlog/INSTALL

25 lines
661 B
Plaintext
Raw Permalink Normal View History

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