Skip to content
Snippets Groups Projects
Commit 43c581ba authored by Administrator's avatar Administrator Committed by Florian Uhlig
Browse files

Use modern CMake for build sytem

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