Commit 43c581ba authored by Administrator's avatar Administrator Committed by Florian Uhlig
Browse files

Use modern CMake for build sytem

parent 2efee564
......@@ -2,25 +2,19 @@
# the array .
# The extension is already found. Any number of sources could be listed here.
set(INCLUDE_DIRECTORIES
${CMAKE_SOURCE_DIR}/core/data
${CMAKE_SOURCE_DIR}/core/data/sts
set(SRCS
${CMAKE_SOURCE_DIR}/core/data/sts/CbmStsDigi.cxx
)
include_directories(${INCLUDE_DIRECTORIES})
add_library(OnlineData SHARED ${SRCS})
set(SYSTEM_INCLUDE_DIRECTORIES
${Boost_INCLUDE_DIR}
target_include_directories(OnlineData
PUBLIC ${CMAKE_SOURCE_DIR}/core/data
PUBLIC ${CMAKE_SOURCE_DIR}/core/data/sts
)
include_directories(SYSTEM ${SYSTEM_INCLUDE_DIRECTORIES})
set(SRCS
${CMAKE_SOURCE_DIR}/core/data/sts/CbmStsDigi.cxx
target_include_directories(OnlineData SYSTEM
PUBLIC ${Boost_INCLUDE_DIR}
)
ADD_DEFINITIONS(-DNO_ROOT)
#---Create a shared library with geneated dictionary
add_library(OnlineData SHARED ${SRCS})
target_compile_definitions(OnlineData PUBLIC NO_ROOT)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment