|
@@ -148,6 +148,7 @@ if(CMAKE_BUILD_TYPE STREQUAL "MinSizeRel" OR CMAKE_BUILD_TYPE STREQUAL "Release"
|
|
|
add_library(open62541-object OBJECT ${PROJECT_BINARY_DIR}/open62541.c)
|
|
|
add_library(open62541 SHARED $<TARGET_OBJECTS:open62541-object>)
|
|
|
else()
|
|
|
+ add_definitions(-DNOT_AMALGATED)
|
|
|
add_library(open62541-object OBJECT ${lib_sources} ${internal_headers} ${exported_headers})
|
|
|
include_directories(${PROJECT_SOURCE_DIR}/include)
|
|
|
include_directories(${PROJECT_SOURCE_DIR}/deps)
|
|
@@ -214,7 +215,7 @@ option(BUILD_EXAMPLECLIENT "Build a test client" OFF)
|
|
|
if(BUILD_EXAMPLECLIENT)
|
|
|
message(STATUS "Extensions: enabling client")
|
|
|
add_definitions( -DBENCHMARK=1 )
|
|
|
- add_executable(exampleClient ${PROJECT_BINARY_DIR}/open62541.c examples/client.c)
|
|
|
+ add_executable(exampleClient $<TARGET_OBJECTS:open62541-object> examples/client.c)
|
|
|
target_include_directories(exampleClient PRIVATE ${PROJECT_BINARY_DIR})
|
|
|
if(ENABLE_MULTITHREADING)
|
|
|
target_link_libraries(exampleClient urcu-cds urcu urcu-common pthread)
|