cmake_minimum_required(VERSION 3.22)

project(Phoenix)

find_package(PhoenixCMake REQUIRED)

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

phoenix_base_project("PhoenixLecture" "${PROJECT_VERSION}"
		"Set of tools to make lectures"
		"https://gitlab.in2p3.fr/CTA-LAPP/PHOENIX_LIBS2/static-site-generator/PhoenixLecture")

pull_extra_module("PhoenixPresentation" "https://gitlab.in2p3.fr/CTA-LAPP/PHOENIX_LIBS2/static-site-generator/PhoenixPresentation.git")
pull_extra_module("PhoenixTex2Html" "https://gitlab.in2p3.fr/CTA-LAPP/PHOENIX_LIBS2/static-site-generator/PhoenixTex2Html.git")

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

#phoenix_create_find_full(PhoenixLecture
	#"PGenericParser.h;PMarkdownParser.h;PConfigParser.h"
	#"phoenix_tex_2_html_lib"
	#"phoenix_tex2html;phoenix_srcsplittex;phoenix_srcsplittexdir"
	#"phoenix_tex2html_extra.cmake"
	#PhoenixCore PhoenixDataStream PhoenixOptionParser PhoenixFileParser PhoenixXml PhoenixToml)

install(FILES FindPhoenixLecture.cmake DESTINATION share/cmake/Modules)

phoenix_tests()
