mirror of
https://github.com/gabime/spdlog.git
synced 2025-01-15 17:27:57 +00:00
Compare commits
9 Commits
966d827d35
...
f3d99f41d4
Author | SHA1 | Date | |
---|---|---|---|
|
f3d99f41d4 | ||
|
fdb46b857f | ||
|
8d06df9775 | ||
|
a8d6e60ec6 | ||
|
4e643fa42c | ||
|
eb234bbf91 | ||
|
5378f35239 | ||
|
622f5eb967 | ||
|
1b4621962f |
@ -6,12 +6,16 @@ cmake_minimum_required(VERSION 3.2)
|
||||
#---------------------------------------------------------------------------------------
|
||||
# Start spdlog project
|
||||
#---------------------------------------------------------------------------------------
|
||||
include(GNUInstallDirs)
|
||||
include(cmake/utils.cmake)
|
||||
include(cmake/ide.cmake)
|
||||
|
||||
spdlog_extract_version()
|
||||
|
||||
project(spdlog VERSION ${SPDLOG_VERSION} LANGUAGES CXX)
|
||||
message(STATUS "Build spdlog: ${SPDLOG_VERSION}")
|
||||
|
||||
include(GNUInstallDirs)
|
||||
|
||||
#---------------------------------------------------------------------------------------
|
||||
# Set default build to release
|
||||
#---------------------------------------------------------------------------------------
|
||||
@ -19,8 +23,6 @@ if(NOT CMAKE_BUILD_TYPE)
|
||||
set(CMAKE_BUILD_TYPE "Release" CACHE STRING "Choose Release or Debug" FORCE)
|
||||
endif()
|
||||
|
||||
project(spdlog VERSION ${SPDLOG_VERSION} LANGUAGES CXX)
|
||||
message(STATUS "Build spdlog: ${SPDLOG_VERSION}")
|
||||
|
||||
#---------------------------------------------------------------------------------------
|
||||
# Compiler config
|
||||
|
@ -4,6 +4,8 @@
|
||||
cmake_minimum_required(VERSION 3.1)
|
||||
project(spdlog_examples CXX)
|
||||
|
||||
include(../cmake/utils.cmake)
|
||||
|
||||
if(NOT TARGET spdlog)
|
||||
# Stand-alone build
|
||||
find_package(spdlog REQUIRED)
|
||||
|
@ -1,5 +1,12 @@
|
||||
cmake_minimum_required(VERSION 3.2)
|
||||
|
||||
project(spdlog_utests CXX)
|
||||
|
||||
if(NOT TARGET spdlog)
|
||||
# Stand-alone build
|
||||
find_package(spdlog REQUIRED)
|
||||
endif()
|
||||
|
||||
include(../cmake/utils.cmake)
|
||||
|
||||
find_package(PkgConfig)
|
||||
@ -47,6 +54,7 @@ function(spdlog_prepare_test test_target spdlog_lib)
|
||||
spdlog_enable_sanitizer(${test_target})
|
||||
endif()
|
||||
add_test(NAME ${test_target} COMMAND ${test_target})
|
||||
set_tests_properties(${test_target} PROPERTIES RUN_SERIAL ON)
|
||||
endfunction()
|
||||
|
||||
# The compiled library tests
|
||||
|
@ -3,8 +3,6 @@
|
||||
#include <cstddef>
|
||||
#include <string>
|
||||
|
||||
std::size_t count_lines(const std::string &filename);
|
||||
|
||||
std::size_t count_files(const std::string &folder);
|
||||
|
||||
void prepare_logdir();
|
||||
|
Loading…
Reference in New Issue
Block a user