Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gabime/spdlog.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrian Antonana <adrian.antonana@stackforce.de>2017-08-24 17:55:55 +0300
committerAdrian Antonana <adrian.antonana@stackforce.de>2017-08-24 17:55:55 +0300
commitab25004242c50ec5dbfae545a70931e499809b88 (patch)
tree9809849488ba7277f49422c85b53aedda7af4320 /CMakeLists.txt
parent5504630e46c7f6cae9ddcac54f6c89ce9a536acb (diff)
cmake: add some commend blocks to clearly differentiate CMakeLists file sections
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt9
1 files changed, 9 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index a02384e6..64ed8e3e 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -11,6 +11,9 @@ include(CTest)
include(CMakeDependentOption)
include(GNUInstallDirs)
+#---------------------------------------------------------------------------------------
+# compiler config
+#---------------------------------------------------------------------------------------
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
@@ -18,6 +21,9 @@ if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU" OR "${CMAKE_CXX_COMPILER_ID}" MATCH
set(CMAKE_CXX_FLAGS "-Wall ${CMAKE_CXX_FLAGS}")
endif()
+#---------------------------------------------------------------------------------------
+# spdlog target
+#---------------------------------------------------------------------------------------
add_library(spdlog INTERFACE)
option(SPDLOG_BUILD_EXAMPLES "Build examples" OFF)
@@ -43,6 +49,9 @@ if(SPDLOG_BUILD_TESTING)
add_subdirectory(tests)
endif()
+#---------------------------------------------------------------------------------------
+# Install/export targets and files
+#---------------------------------------------------------------------------------------
set(config_install_dir "${CMAKE_INSTALL_LIBDIR}/cmake/${PROJECT_NAME}")
set(include_install_dir "${CMAKE_INSTALL_INCLUDEDIR}")
set(pkgconfig_install_dir "${CMAKE_INSTALL_LIBDIR}/pkgconfig")