diff options
Diffstat (limited to 'GcodeProcessorLib/CMakeLists.txt')
-rw-r--r-- | GcodeProcessorLib/CMakeLists.txt | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/GcodeProcessorLib/CMakeLists.txt b/GcodeProcessorLib/CMakeLists.txt index 16cf7a7..a6143eb 100644 --- a/GcodeProcessorLib/CMakeLists.txt +++ b/GcodeProcessorLib/CMakeLists.txt @@ -1,7 +1,9 @@ -cmake_minimum_required (VERSION "3.16") +cmake_minimum_required (VERSION "3.13") project(GcodeProcessorLib C CXX) +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) @@ -9,7 +11,13 @@ include(sourcelist.cmake) # Add a library using our GcodeProcessorLibSources variable from our sourcelist file add_library(${PROJECT_NAME} STATIC ${GcodeProcessorLibSources}) -install(TARGETS ${PROJECT_NAME}) + +install( + TARGETS ${PROJECT_NAME} + ARCHIVE DESTINATION lib + LIBRARY DESTINATION lib # <-- Add this line + COMPONENT library +) # Required on Unix OS family to be able to be linked into shared libraries. set_target_properties(${PROJECT_NAME} |