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

github.com/FormerLurker/ArcWelderLib.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFormerLurker <hochgebe@gmail.com>2021-01-18 21:35:20 +0300
committerFormerLurker <hochgebe@gmail.com>2021-01-18 21:35:20 +0300
commit3af9af2cdc778bbb7f481177cf3c840e6d9d1ee2 (patch)
tree1a1e4648c5d7a9321d7766ea265aceabe16a8198 /GcodeProcessorLib
parentb35d6aa16d9dae8350a36ac0256bf68a1ac51cef (diff)
Simplify cmake
Diffstat (limited to 'GcodeProcessorLib')
-rw-r--r--GcodeProcessorLib/CMakeLists.txt15
1 files changed, 0 insertions, 15 deletions
diff --git a/GcodeProcessorLib/CMakeLists.txt b/GcodeProcessorLib/CMakeLists.txt
index 4f64c4e..4c178b8 100644
--- a/GcodeProcessorLib/CMakeLists.txt
+++ b/GcodeProcessorLib/CMakeLists.txt
@@ -1,12 +1,5 @@
-cmake_minimum_required (VERSION "3.13")
-
-if(NOT CMAKE_BUILD_TYPE)
- set(CMAKE_BUILD_TYPE Release)
-endif()
-
project(GcodeProcessorLib C CXX)
-
# create a version information header - version.h
# First get the current branch and store to GIT_BRANCH variable
execute_process(
@@ -59,21 +52,13 @@ include_directories("${CMAKE_BINARY_DIR}/GcodeProcessorLib/generated/")
file(COPY "${CMAKE_BINARY_DIR}/GcodeProcessorLib/generated/version.generated.h" DESTINATION "${PROJECT_SOURCE_DIR}/deploy")
file(RENAME "${PROJECT_SOURCE_DIR}/deploy/version.generated.h" "${PROJECT_SOURCE_DIR}/deploy/version.h")
-option(USE_CXX_EXCEPTIONS "Enable C++ exception support" ON)
-
# include sourcelist.cmake, which contains our source list and exposes it as the
# GcodeProcessorLibSources variable
include(sourcelist.cmake)
-if(MSVC)
- # link to the msvc runtime statically, keeping debug info if we are in debug config
- set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>")
-endif()
-
# Add a library using our GcodeProcessorLibSources variable from our sourcelist file
add_library(${PROJECT_NAME} STATIC ${GcodeProcessorLibSources})
-
install(
TARGETS ${PROJECT_NAME}
ARCHIVE DESTINATION lib