cmake_minimum_required(VERSION 3.22)

project(Phoenix)

find_package(PhoenixCMake REQUIRED)

set(PROJECT_VERSION "1.2.1") # this line is updated by semantic release using regex

phoenix_base_project("PhoenixMicroBenchmark" "${PROJECT_VERSION}"
		"Toolset for function micro-benchmarking"
		"https://gitlab.in2p3.fr/CTA-LAPP/PHOENIX_LIBS2/test-benchmark/PhoenixMicroBenchmark")

set(SCRIPT_SPLIT_DATA ${CMAKE_CURRENT_SOURCE_DIR}/script/scriptSplitParallelData.sh CACHE STRING "script used to split data in the parallel performance test mode")

include(phoenix_runExample.cmake)
include_directories(${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR})
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/src)

phoenix_create_find(PhoenixMicroBenchmark phoenix_micro_benchmark micro_benchmark.h "phoenix_runExample.cmake")
install(FILES phoenix_runExample.cmake DESTINATION share/cmake/Modules)

phoenix_add_subdirectory(src)

phoenix_tests()

