We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
BUILD_SHARED_LIBS
1 parent 68f21ab commit e40b852Copy full SHA for e40b852
1 file changed
CMakeLists.txt
@@ -1,5 +1,7 @@
1
# Updated 2025.05 to 3.10 since compatibility with CMake < 3.10 will be removed from a future version of CMake.
2
CMAKE_MINIMUM_REQUIRED(VERSION 3.10)
3
+# https://cmake.org/cmake/help/latest/variable/BUILD_SHARED_LIBS.html
4
+option(BUILD_SHARED_LIBS "Build using shared libraries" ON)
5
6
if(WIN32)
7
set(CMAKE_TOOLCHAIN_FILE C:/vcpkg/scripts/buildsystems/vcpkg.cmake)
@@ -41,7 +43,7 @@ endif()
41
43
# As of 2025.05, Not using GLOB_RECURSE as it's explicitly discouraged.
42
44
# https://stackoverflow.com/questions/3201154/automatically-add-all-files-in-a-folder-to-a-target-using-cmake
45
# https://cmake.org/cmake/help/latest/command/file.html#filesystem
-ADD_LIBRARY(dqrobotics SHARED
46
+ADD_LIBRARY(dqrobotics
47
src/DQ.cpp
48
49
src/internal/_dq_linesegment.cpp
0 commit comments