File: CMakeLists.txt

package info (click to toggle)
ptl 2.3.3-2.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,296 kB
  • sloc: cpp: 8,195; python: 246; sh: 7; makefile: 3
file content (23 lines) | stat: -rw-r--r-- 834 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# ----------------------------------------------------------------------------
# standard example
#
add_executable(tasking tasking.cc)
target_link_libraries(tasking PRIVATE PTL::ptl common)

if(PTL_TBB_FOUND)
    add_executable(tbb_tasking tasking.cc)
    target_compile_definitions(tbb_tasking PRIVATE USE_TBB_TASKS)
    target_link_libraries(tbb_tasking PTL::ptl common)
endif()

# ----------------------------------------------------------------------------
# recursive example
#
add_executable(recursive_tasking recursive_tasking.cc)
target_link_libraries(recursive_tasking PRIVATE PTL::ptl common)

if(PTL_TBB_FOUND)
    add_executable(recursive_tbb_tasking recursive_tasking.cc)
    target_compile_definitions(recursive_tbb_tasking PRIVATE USE_TBB_TASKS)
    target_link_libraries(recursive_tbb_tasking PTL::ptl common)
endif()