dust3d/thirdparty/cgal/CGAL-4.13/cmake/modules/CGAL_target_use_TBB.cmake

11 lines
361 B
CMake
Executable File

if (CGAL_target_use_TBB_included)
return()
endif()
set(CGAL_target_use_TBB_included TRUE)
function(CGAL_target_use_TBB target)
target_include_directories ( ${target} SYSTEM PUBLIC ${TBB_INCLUDE_DIRS} )
target_link_libraries( ${target} PUBLIC ${TBB_LIBRARIES} )
target_compile_options( ${target} PUBLIC -DNOMINMAX -DCGAL_LINKED_WITH_TBB )
endfunction()