spdlog/INSTALL

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

25 lines
662 B
Plaintext
Raw 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
2023-06-27 23:19:22 +08:00
Or copy files src/*.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