cmake_minimum_required(VERSION 3.10)
project(Phoenix)

find_package(PhoenixCMake REQUIRED)

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

phoenix_base_project("PhoenixZMQ" "${PROJECT_VERSION}"
		"Library which integrates zeromq use"
		"https://gitlab.in2p3.fr/CTA-LAPP/PHOENIX_LIBS2/network/PhoenixZMQ")

pull_extra_module("PhoenixDataStream" "https://gitlab.in2p3.fr/CTA-LAPP/PHOENIX_LIBS2/serialize-io/PhoenixDataStream.git")
pull_extra_module("PhoenixSocket" "https://gitlab.in2p3.fr/CTA-LAPP/PHOENIX_LIBS2/network/PhoenixSocket.git")

include(FindZMQ.cmake)

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

phoenix_create_find(PhoenixZMQ phoenix_zmq phoenix_zmq.h "FindZMQ.cmake" ZMQ PhoenixDataStream PhoenixSocket)

phoenix_add_subdirectory(src)

phoenix_tests()
