Debian Codegraph @

third-party/tbb/examples/task_arena/fractal/CMakeLists.txt

raw
1 # Copyright (c) 2020-2025 Intel Corporation
2 #
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
6 #
7 # http://www.apache.org/licenses/LICENSE-2.0
8 #
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
14
15 cmake_minimum_required(VERSION 3.5.0...3.31.3)
16
17 project(fractal CXX)
18
19 include(../../common/cmake/common.cmake)
20
21 set_common_project_settings(tbb)
22
23 add_executable(fractal fractal.cpp main.cpp )
24
25 add_subdirectory(../../common/gui gui)
26
27 target_link_libraries(fractal PUBLIC TBB::tbb Threads::Threads UI_LIB_fractal)
28 target_compile_options(fractal PRIVATE ${TBB_CXX_STD_FLAG})
29
30 set(EXECUTABLE "$<TARGET_FILE:fractal>")
31 set(ARGS auto)
32 set(PERF_ARGS auto 1 1000000 silent)
33 set(LIGHT_ARGS auto 1 1000)
34
35 add_execution_target(run_fractal fractal ${EXECUTABLE} "${ARGS}")
36 add_execution_target(perf_run_fractal fractal ${EXECUTABLE} "${PERF_ARGS}")
37 add_execution_target(light_test_fractal fractal ${EXECUTABLE} "${LIGHT_ARGS}")