Skip to content

Commit

Permalink
Made brayns and braynsRockets libraries available to 3rd party applic…
Browse files Browse the repository at this point in the history
…ations
  • Loading branch information
favreau committed Feb 4, 2021
1 parent 0a0d546 commit e12fa84
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 6 deletions.
4 changes: 4 additions & 0 deletions apps/BraynsBenchmark/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,8 @@ set(BRAYNSBENCHMARK_LINK_LIBRARIES
PUBLIC brayns braynsCommon braynsIO braynsParameters
)

if(BRAYNS_NETWORKING_ENABLED)
list(APPEND BRAYNSBENCHMARK_LINK_LIBRARIES PRIVATE braynsRockets)
endif()

common_application(braynsBenchmark)
6 changes: 6 additions & 0 deletions apps/BraynsService/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,11 @@
# This file is part of Brayns <https://github.com/BlueBrain/Brayns>

set(BRAYNSSERVICE_SOURCES main.cpp)

set(BRAYNSSERVICE_LINK_LIBRARIES PUBLIC brayns ${libuv_LIBRARIES})

if(BRAYNS_NETWORKING_ENABLED)
list(APPEND BRAYNSSERVICE_LINK_LIBRARIES PRIVATE braynsRockets)
endif()

common_application(braynsService)
4 changes: 4 additions & 0 deletions apps/BraynsViewer/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,8 @@ set(BRAYNSVIEWER_LINK_LIBRARIES
braynsUI
)

if(BRAYNS_NETWORKING_ENABLED)
list(APPEND BRAYNSVIEWER_LINK_LIBRARIES PRIVATE braynsRockets)
endif()

common_application(braynsViewer)
5 changes: 0 additions & 5 deletions brayns/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,4 @@ set(BRAYNS_LINK_LIBRARIES
PUBLIC braynsParameters braynsCommon braynsEngine
PRIVATE braynsIO braynsPluginAPI braynsManipulators braynsTasks)

if(TARGET braynsRockets)
list(APPEND BRAYNS_LINK_LIBRARIES PRIVATE braynsRockets)
endif()

set(BRAYNS_OMIT_EXPORT ON)
common_library(brayns)
1 change: 0 additions & 1 deletion plugins/Rockets/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ endif()

set(BRAYNSROCKETS_OMIT_LIBRARY_HEADER ON)
set(BRAYNSROCKETS_OMIT_VERSION_HEADERS ON)
set(BRAYNSROCKETS_OMIT_EXPORT ON)
set(BRAYNSROCKETS_INCLUDE_NAME rocketsplugin)
common_library(braynsRockets)
target_include_directories(braynsRockets SYSTEM PRIVATE ${FREEIMAGE_INCLUDE_DIRS})
Expand Down

0 comments on commit e12fa84

Please sign in to comment.