cmake_minimum_required(VERSION 3.22)
project(Phoenix)

find_package(PhoenixCMake REQUIRED)

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

phoenix_base_project("PhoenixPathStream" "${PROJECT_VERSION}"
		"Interface PString and PPath into PhoenixDataStream"
		"https://gitlab.in2p3.fr/CTA-LAPP/PHOENIX_LIBS2/serialize-io/PhoenixPathStream")
		
pull_extra_module("PhoenixDataStream" "https://gitlab.in2p3.fr/CTA-LAPP/PHOENIX_LIBS2/serialize-io/PhoenixDataStream.git")
pull_extra_module("PhoenixTypeStream" "https://gitlab.in2p3.fr/CTA-LAPP/PHOENIX_LIBS2/serialize-io/PhoenixTypeStream.git")
pull_extra_module("PhoenixCheckStream" "https://gitlab.in2p3.fr/CTA-LAPP/PHOENIX_LIBS2/serialize-io/PhoenixCheckStream.git")
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
	${CMAKE_CURRENT_BINARY_DIR}/src
)

phoenix_create_find(PhoenixPathStream phoenix_path_stream phoenix_path_stream.h "" PhoenixDataStream PhoenixTypeStream PhoenixCheckStream PhoenixCore)

phoenix_add_subdirectory(src)

phoenix_tests()

