Skip to content
Snippets Groups Projects
Commit 785e719b authored by Guilherme Amadio's avatar Guilherme Amadio
Browse files

Update CMakeLists.txt for core/imt

parent b83363c5
No related branches found
No related tags found
No related merge requests found
......@@ -2,25 +2,44 @@
# CMakeLists.txt file for building ROOT core/imt package
############################################################################
set(headers ROOT/TTaskGroup.hxx)
set(sources base.cxx TTaskGroup.cxx)
ROOT_LINKER_LIBRARY(Imt
src/base.cxx
src/TTaskGroup.cxx
DEPENDENCIES
Core
Thread
BUILTINS
TBB
)
if (imt)
include_directories(${TBB_INCLUDE_DIRS})
set(headers ${headers} ROOT/TPoolManager.hxx ROOT/TThreadExecutor.hxx ROOT/TFuture.hxx)
set(sources ${sources} TImplicitMT.cxx TThreadExecutor.cxx TPoolManager.cxx G__Imt.cxx)
ROOT_GENERATE_DICTIONARY(G__Imt ${headers} STAGE1
MODULE Imt LINKDEF LinkDef.h
DEPENDENCIES Core Thread BUILTINS TBB)
endif()
if(imt)
target_include_directories(Imt PRIVATE ${TBB_INCLUDE_DIRS})
target_link_libraries(Imt PUBLIC ${TBB_LIBRARIES})
ROOT_LINKER_LIBRARY(Imt ${sources}
LIBRARIES ${CMAKE_THREAD_LIBS_INIT} ${TBB_LIBRARIES}
DEPENDENCIES Core Thread BUILTINS TBB)
ROOT_GENERATE_DICTIONARY(G__Imt STAGE1
ROOT/TFuture.hxx
ROOT/TPoolManager.hxx
ROOT/TTaskGroup.hxx
ROOT/TThreadExecutor.hxx
LINKDEF
LinkDef.h
MODULE
Imt
DEPENDENCIES
Core
Thread
BUILTINS
TBB
)
ROOT_INSTALL_HEADERS(${installoptions})
target_sources(Imt PRIVATE
G__Imt.cxx
src/TImplicitMT.cxx
src/TPoolManager.cxx
src/TThreadExecutor.cxx
)
if(imt)
ROOT_ADD_TEST_SUBDIRECTORY(test)
ROOT_ADD_TEST_SUBDIRECTORY(test)
endif()
ROOT_INSTALL_HEADERS()
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