Explorar o código

Registered BUILD_SHARED_LIBS as build option (can otherwise not be enabled by some IDEs)

Chris Paul Iatrou %!s(int64=8) %!d(string=hai) anos
pai
achega
ef653a3a3d
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      CMakeLists.txt

+ 2 - 0
CMakeLists.txt

@@ -42,6 +42,8 @@ option(UA_ENABLE_SUBSCRIPTIONS "Enable subscriptions support." ON)
 option(UA_ENABLE_MULTITHREADING "Enable multithreading" OFF)
 option(UA_ENABLE_AMALGAMATION "Concatenate the library to a single file open62541.h/.c" OFF)
 option(UA_ENABLE_COVERAGE "Enable gcov coverage" OFF)
+option(BUILD_SHARED_LIBS "Enable building of shared libraries (dll/so)" OFF)
+
 if(UA_ENABLE_COVERAGE)
   set(CMAKE_BUILD_TYPE DEBUG)
   set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fprofile-arcs -ftest-coverage")