CMakeLists.txt 774 Bytes
Newer Older
Pierre Aubert's avatar
Pierre Aubert committed
1 2 3 4 5
project(Phoenix)
cmake_minimum_required(VERSION 2.8)

add_subdirectory(cmake)

Pierre Aubert's avatar
Pierre Aubert committed
6
phoenix_base_project("PhoenixGenerator" "1.3.0"
Pierre Aubert's avatar
Pierre Aubert committed
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
		"Set of tools to generate code"
		"https://gitlab.in2p3.fr/CTA-LAPP/PhoenixGenerator")

pull_extra_module("StringUtils" "https://gitlab.in2p3.fr/CTA-LAPP/StringUtils.git")
pull_extra_module("FileParser" "https://gitlab.in2p3.fr/CTA-LAPP/FileParser.git")

include_directories(${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR})

include_directories(${CMAKE_CURRENT_SOURCE_DIR}/src)

phoenix_create_find(PhoenixGenerator phoenix_generator header_generator.h "" FileParser StringUtils)

add_subdirectory(src)

set(PHOENIX_INCLUDE_DIRS "${CMAKE_CURRENT_SOURCE_DIR}/src;${PHOENIX_INCLUDE_DIRS}" CACHE INTERNAL "list of Phoenix include dirs")