|
@@ -977,6 +977,10 @@ else()
|
|
target_compile_definitions(open62541-plugins PRIVATE -DUA_DYNAMIC_LINKING_EXPORT)
|
|
target_compile_definitions(open62541-plugins PRIVATE -DUA_DYNAMIC_LINKING_EXPORT)
|
|
set_target_properties(open62541-plugins PROPERTIES FOLDER "open62541/lib")
|
|
set_target_properties(open62541-plugins PROPERTIES FOLDER "open62541/lib")
|
|
|
|
|
|
|
|
+ if(UA_PACK_DEBIAN)
|
|
|
|
+ add_library(open62541-static STATIC $<TARGET_OBJECTS:open62541-object> $<TARGET_OBJECTS:open62541-plugins>)
|
|
|
|
+ set_target_properties(open62541-static PROPERTIES OUTPUT_NAME open62541)
|
|
|
|
+ endif()
|
|
add_library(open62541 $<TARGET_OBJECTS:open62541-object> $<TARGET_OBJECTS:open62541-plugins>)
|
|
add_library(open62541 $<TARGET_OBJECTS:open62541-object> $<TARGET_OBJECTS:open62541-plugins>)
|
|
|
|
|
|
if(UA_COMPILE_AS_CXX)
|
|
if(UA_COMPILE_AS_CXX)
|
|
@@ -1147,7 +1151,12 @@ if(UA_ENABLE_DISCOVERY_MULTICAST)
|
|
endif()
|
|
endif()
|
|
|
|
|
|
# export library (either static or shared depending on BUILD_SHARED_LIBS)
|
|
# export library (either static or shared depending on BUILD_SHARED_LIBS)
|
|
-install(TARGETS open62541
|
|
|
|
|
|
+if(UA_PACK_DEBIAN)
|
|
|
|
+ set(EXTRATARGETS "open62541-static")
|
|
|
|
+else()
|
|
|
|
+ set(EXTRATARGETS "")
|
|
|
|
+endif()
|
|
|
|
+install(TARGETS open62541 ${EXTRATARGETS}
|
|
EXPORT open62541Targets
|
|
EXPORT open62541Targets
|
|
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
|
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
|
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
|
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
|