CMakeLists.txt 920 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("PhoenixFileGenerator" "1.5.2"
7
		"Tool to generate code automatically"
Pierre Aubert's avatar
Pierre Aubert committed
8
		"https://gitlab.in2p3.fr/CTA-LAPP/PHOENIX_LIBS/PhoenixFileGenerator")
Pierre Aubert's avatar
Pierre Aubert committed
9

Pierre Aubert's avatar
Pierre Aubert committed
10 11
pull_extra_module("PhoenixGenerator" "https://gitlab.in2p3.fr/CTA-LAPP/PHOENIX_LIBS/PhoenixGenerator.git")
pull_extra_module("OptionParser" "https://gitlab.in2p3.fr/CTA-LAPP/PHOENIX_LIBS/OptionParser.git")
Pierre Aubert's avatar
Pierre Aubert committed
12 13 14 15 16 17 18 19 20 21

include_directories(${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR})

include_directories(${CMAKE_CURRENT_SOURCE_DIR}/src)

install(FILES FindPhoenixFileGenerator.cmake DESTINATION share/cmake)

add_subdirectory(src)
add_subdirectory(script)

22 23 24 25 26
if(SELF_TESTS_MODE)
	include(CTest)
	add_subdirectory(TESTS)
endif(SELF_TESTS_MODE)

Pierre Aubert's avatar
Pierre Aubert committed
27 28 29 30
set(PHOENIX_INCLUDE_DIRS "${CMAKE_CURRENT_SOURCE_DIR}/src;${PHOENIX_INCLUDE_DIRS}" CACHE INTERNAL "list of Phoenix include dirs")