CMakeLists.txt 895 Bytes
Newer Older
Administrator's avatar
Administrator committed
1
2
3
4
# Create a library called "libCbmOnlineData" which includes the source files given in
# the array .
# The extension is already found.  Any number of sources could be listed here.

5
6
set(SRCS
  ${CMAKE_SOURCE_DIR}/core/data/sts/CbmStsDigi.cxx
7
  ${CMAKE_SOURCE_DIR}/core/data/sts/CbmStsAddress.cxx
8
 )
Administrator's avatar
Administrator committed
9

10
add_library(OnlineData SHARED ${SRCS})
Administrator's avatar
Administrator committed
11

12
13
target_include_directories(OnlineData
  PUBLIC ${CMAKE_SOURCE_DIR}/core/data
14
  PUBLIC ${CMAKE_SOURCE_DIR}/core/data/base
15
  PUBLIC ${CMAKE_SOURCE_DIR}/core/data/sts
16
17
  PUBLIC ${CMAKE_SOURCE_DIR}/core/data/global
  PUBLIC ${CMAKE_SOURCE_DIR}/external/ipc/ipc/lib/fles_ipc
Administrator's avatar
Administrator committed
18
19
)

20
21
target_include_directories(OnlineData SYSTEM
  PUBLIC ${Boost_INCLUDE_DIR}
22
23
24
25
26
  PUBLIC ${FAIRLOGGER_INCLUDE_DIR}
)

target_link_directories(OnlineData
  PUBLIC ${FAIRLOGGER_LIBRARY_DIR}
Administrator's avatar
Administrator committed
27
28
)

29
target_compile_definitions(OnlineData PUBLIC NO_ROOT)
30
target_link_libraries(OnlineData FairLogger)