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("PhoenixTypeStream" "${PROJECT_VERSION}"
		"Unified C++ type-to-string conversion framework"
		"https://gitlab.in2p3.fr/CTA-LAPP/PHOENIX_LIBS2/serialize-io/PhoenixTypeStream")
		
pull_extra_module("PhoenixDataStream" "https://gitlab.in2p3.fr/CTA-LAPP/PHOENIX_LIBS2/serialize-io/PhoenixDataStream.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(PhoenixTypeStream phoenix_type_stream phoenix_type_stream.h "" PhoenixDataStream)

phoenix_add_subdirectory(src)

phoenix_tests()

