cmake_minimum_required(VERSION 3.22)

project(Phoenix)

find_package(PhoenixCMake REQUIRED)

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

phoenix_base_project("PhoenixProgress" "${PROJECT_VERSION}"
		"Library of progress bar"
		"https://gitlab.in2p3.fr/CTA-LAPP/PHOENIX_LIBS2/display/PhoenixProgress")

pull_extra_module("PhoenixCore" "https://gitlab.in2p3.fr/CTA-LAPP/PHOENIX_LIBS2/system/PhoenixCore.git")

phoenix_include_directories(
	${CMAKE_CURRENT_SOURCE_DIR}
	${CMAKE_CURRENT_BINARY_DIR}
	${CMAKE_CURRENT_SOURCE_DIR}/src
)

phoenix_create_find(PhoenixProgress phoenix_progress ProgressTime.h "" PhoenixCore)

phoenix_add_subdirectory(src)

phoenix_tests()
