Commit Graph

25 Commits (7709fc70eb69f2cf21a7d8d95527a235b2d5545f)

Author SHA1 Message Date
Daniel Chabrowski 646a140ed4 Specify CXX language explicitly in CMake
Marking project as CXX will disable detecting C compiler and other checks.
Removed 'INCLUDES DESTINATION' as it made the include path appear doubled.
8 years ago
Gabi Melman f258af4364
Update CMakeLists.txt 8 years ago
gabime 813dcbcf63 version 0.16.2 8 years ago
Gabi Melman c060a10c10
update to version 0.16.1 8 years ago
Ľubomír Carik dda8af0092 Update version strings to 0.16.0
Signed-off-by: Ľubomír Carik <Lubomir.Carik@anritsu.com>
8 years ago
Adrian Antonana e6b9fa577d cmake: set project version to 0.14.0 8 years ago
Adrian Antonana fe2fa4087d cmake: add some small comments to point out whats being done 8 years ago
Adrian Antonana ab25004242 cmake: add some commend blocks to clearly differentiate CMakeLists file sections 8 years ago
Adrian Antonana 5504630e46 cmake: improve CMakeLists.txt
* support CMake user registry package registration
* use GNUInstallDirs to set installation firectories
* use spdlog namespace in both build and install interfaces
8 years ago
Lectem 47cf62f878 SPDLOG_BUILD_TESTING now depends on BUILD_TESTING
I encountered an issue when using spdlog through add_subdirectory.
Since SPDLOG_BUILD_TESTING is ON by default, it now adds tests to my project, even if BUILD_TESTING (the official CTest variable) is set to OFF.
cmake_dependent_option makes it so that if someone enables BUILD_TESTING then SPDLOG_BUILD_TESTING will be set to ON by default.
This way one can disable all external tests by setting BUILD_TESTING before using add_subdirectory and then setting it back to its original value.
The only change for those using the library directly is that they now use BUILD_TESTING instead of SPDLOG_BUILD_TESTING when configuring.
8 years ago
Bartosz Taczała 50c181ea4b Add prefix for BUILD_TESTING cmake option
This is helpful when using spdlog as a dependency (git submodule) when a
master project is not interested in spdlog tests. Using
"BUILD_TESTING" name may create a confusion.
Extra: BUILD_EXAMPLE variable already have a prefix.
9 years ago
Jan Kundrát f058d3aa74 cmake: use -Wall on GCC and Clang
These checks come from [1]. The `MATCHES` operator is used for clang
because of Apple's special string.

[1] http://stackoverflow.com/questions/10046114/in-cmake-how-can-i-test-if-the-compiler-is-clang/10055571#10055571
9 years ago
Jan Kundrát 1c31800210 cmake: Use a standard option for controlling the tests
As per the docs [1], there's a standard variable for this purpose. This
introduces a behavior change, the tests are now being built by default.

[1] https://cmake.org/cmake/help/v3.0/module/CTest.html
9 years ago
Jan Kundrát 61cdd170fd cmake: List spdlog's content in IDEs
This is a usual CMake way of ensuring that IDEs have a way of showing
all source files which comprise this header-only library. It works in
the Qt Creator, for example.
9 years ago
Gabi Melman 3aef25c948 Update CMakeLists.txt 10 years ago
Kevin M. Godby 24e7b64b89 Added header-dependency tests. 10 years ago
Gabi Melman 6d5bce46f8 Revert "CMake script improvements" 10 years ago
Kevin M. Godby 2132fe0ec5 Initial work on benchmarks of other logging systems. 10 years ago
Kevin M. Godby 846fdf9f5c Added ctest so we now have a 'make test' target for running tests. 10 years ago
Kevin M. Godby 2666b6cbf1 Added header dependency tests. 10 years ago
Nick White b7e3a103c3 Generate & Install pkg-config File 10 years ago
gabime 495ecaeaee astyle 10 years ago
Kevin M. Godby 9afc960d88 Enforce C++11 standard. 10 years ago
Gabi Melman 1725b7a6e2 update to MIT license 10 years ago
Ruslan Baratov c19d9759d5 Add CMake build 10 years ago