From 3f4a0d5370ae6c34afe180df96add3b8522f4af1 Mon Sep 17 00:00:00 2001 From: mattkae Date: Wed, 11 May 2022 09:23:58 -0400 Subject: initial commit --- elpa/irony-20220110.849/server/CMakeLists.txt | 33 +++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 elpa/irony-20220110.849/server/CMakeLists.txt (limited to 'elpa/irony-20220110.849/server/CMakeLists.txt') diff --git a/elpa/irony-20220110.849/server/CMakeLists.txt b/elpa/irony-20220110.849/server/CMakeLists.txt new file mode 100644 index 0000000..21f9c9f --- /dev/null +++ b/elpa/irony-20220110.849/server/CMakeLists.txt @@ -0,0 +1,33 @@ +cmake_minimum_required(VERSION 3.0.2) + +project(IronyMode) + +set(CMAKE_MODULE_PATH + ${PROJECT_SOURCE_DIR}/cmake + ${PROJECT_SOURCE_DIR}/cmake/modules + ${CMAKE_MODULE_PATH}) + +include(CTest) +include(GNUInstallDirs) + +# Starting from CMake >= 3.1, if a specific standard is required, +# it can be set from the command line with: +# cmake -DCMAKE_CXX_STANDARD=[11|14|17] +function(irony_target_set_cxx_standard target) + set(cxx_standard 11) + if (CMAKE_VERSION VERSION_LESS "3.1") + if (CMAKE_CXX_COMPILER_ID MATCHES "GNU|Clang") + target_compile_options(${target} PRIVATE -std=c++${cxx_standard}) + endif() + elseif (CMAKE_VERSION VERSION_LESS "3.8") + set_property(TARGET ${target} PROPERTY CXX_STANDARD ${cxx_standard}) + else() + target_compile_features(${target} PUBLIC cxx_std_${cxx_standard}) + endif() +endfunction() + +add_subdirectory(src) + +if (BUILD_TESTING) + add_subdirectory(test) +endif() -- cgit v1.2.1