1# Copyright (c) 2020-2023 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 15cmake_minimum_required(VERSION 3.5) 16 17project(shortpath CXX) 18 19include(../../common/cmake/common.cmake) 20 21set_common_project_settings(tbb) 22 23add_executable(shortpath shortpath.cpp) 24 25target_link_libraries(shortpath TBB::tbb Threads::Threads) 26target_compile_options(shortpath PRIVATE ${TBB_CXX_STD_FLAG}) 27 28set(EXECUTABLE "$<TARGET_FILE:shortpath>") 29set(ARGS 4 N=1000 start=0 end=999 verbose) 30set(PERF_ARGS auto N=1000 start=0 end=99 silent) 31 32add_execution_target(run_shortpath shortpath ${EXECUTABLE} "${ARGS}") 33add_execution_target(perf_run_shortpath shortpath ${EXECUTABLE} "${PERF_ARGS}") 34