mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-09 00:00:00 +01:00
cmake: several smaller improvements
This commit is contained in:
parent
f8d96ada55
commit
942aff3c59
5 changed files with 6 additions and 6 deletions
|
@ -82,7 +82,7 @@ find_package(PkgConfig REQUIRED)
|
|||
find_package(Threads REQUIRED)
|
||||
find_package(Mosquitto)
|
||||
find_package(Opal)
|
||||
find_package(IBVerbs)
|
||||
find_package(IBVERBS)
|
||||
find_package(RDMACM)
|
||||
find_package(spdlog)
|
||||
find_package(Etherlab)
|
||||
|
|
|
@ -29,9 +29,9 @@ list(APPEND INCLUDE_DIRS
|
|||
)
|
||||
|
||||
set(LIBRARIES
|
||||
villas-common
|
||||
PkgConfig::JANSSON
|
||||
PkgConfig::UUID
|
||||
villas-common
|
||||
m
|
||||
stdc++
|
||||
)
|
||||
|
@ -137,7 +137,7 @@ endif()
|
|||
add_library(villas SHARED ${LIB_SRC})
|
||||
|
||||
target_include_directories(villas PUBLIC ${INCLUDE_DIRS})
|
||||
target_link_libraries(villas PUBLIC ${LIBRARIES} villas-common)
|
||||
target_link_libraries(villas PUBLIC ${LIBRARIES})
|
||||
|
||||
if(APPLE)
|
||||
target_link_libraries(villas PRIVATE -Wl,-all_load ${WHOLE_ARCHIVES} -Wl,-noall_load)
|
||||
|
|
|
@ -48,5 +48,5 @@ endif()
|
|||
|
||||
add_library(api STATIC ${API_SRC})
|
||||
target_include_directories(api PUBLIC ${INCLUDE_DIRS})
|
||||
target_link_libraries(api INTERFACE ${LIBRARIES} PUBLIC villas-common)
|
||||
target_link_libraries(api PUBLIC ${LIBRARIES})
|
||||
|
||||
|
|
|
@ -73,4 +73,4 @@ list(APPEND FORMAT_SRC
|
|||
|
||||
add_library(formats STATIC ${FORMAT_SRC})
|
||||
target_include_directories(formats PUBLIC ${INCLUDE_DIRS})
|
||||
target_link_libraries(formats INTERFACE ${LIBRARIES} PUBLIC villas-common)
|
||||
target_link_libraries(formats PUBLIC ${LIBRARIES})
|
||||
|
|
|
@ -166,4 +166,4 @@ endif()
|
|||
|
||||
add_library(nodes STATIC ${NODE_SRC})
|
||||
target_include_directories(nodes PUBLIC ${INCLUDE_DIRS})
|
||||
target_link_libraries(nodes INTERFACE ${LIBRARIES} PUBLIC villas-common)
|
||||
target_link_libraries(nodes PUBLIC ${LIBRARIES})
|
||||
|
|
Loading…
Add table
Reference in a new issue