CMake:
  add_executable(example example.cpp)
  target_link_libraries(example spdlog::spdlog)

Tested on:
gcc 4.8.1 and above
clang 3.5
Visual Studio 2013