Commit dedcb931 authored by Sreekanth Arikatla's avatar Sreekanth Arikatla

ENH: Add TBB as external dependency

parent 6266f7ff
#-----------------------------------------------------------------------------
# Add External Project
#-----------------------------------------------------------------------------
include(imstkAddExternalProject)
imstk_add_external_project(tbb
GIT_REPOSITORY https://github.com/wjakob/tbb.git
GIT_TAG tbb44u4
CMAKE_CACHE_ARGS
-DTBB_BUILD_TESTS:BOOL=OFF
RELATIVE_INCLUDE_PATH "include/"
#VERBOSE
)
\ No newline at end of file
This diff is collapsed.
......@@ -131,6 +131,7 @@ if(${PROJECT_NAME}_SUPERBUILD)
imstk_define_dependency(VRPN)
imstk_define_dependency(LibNiFalcon)
imstk_define_dependency(imgui)
imstk_define_dependency(tbb)
if(APPLE OR LINUX)
message("Warning: Building iMSTK WITHOUT audio support!")
......@@ -325,6 +326,11 @@ if(BUILD_TESTING)
include_directories(${GoogleMock_INCLUDE_DIRS})
endif()
# TBB
find_package(tbb REQUIRED)
add_definitions(${TBB_DEFINITIONS})
include_directories( ${TBB_INCLUDE_DIRS} )
# External data
if(BUILD_TESTING OR BUILD_EXAMPLES)
include(imstkExternalData)
......
......@@ -5,6 +5,7 @@ include(imstkAddLibrary)
imstk_add_library( Core
DEPENDS
g3log
tbb
)
#-----------------------------------------------------------------------------
......
Markdown is supported
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