CMakeLists.txt 1.47 KB
Newer Older
Pierre Aubert's avatar
Pierre Aubert committed
1 2 3 4 5
project(Phoenix)
cmake_minimum_required(VERSION 3.0)

add_subdirectory(cmake)

6
phoenix_base_project("ParserGenerator" "1.5.4"
Pierre Aubert's avatar
Pierre Aubert committed
7 8 9
		"Tool to generate file parser for programming languages"
		"https://gitlab.in2p3.fr/CTA-LAPP/PHOENIX_LIBS/ParserGenerator")

10

Pierre Aubert's avatar
Pierre Aubert committed
11
pull_extra_module("OptionParser" "https://gitlab.in2p3.fr/CTA-LAPP/PHOENIX_LIBS/OptionParser.git")
12

Pierre Aubert's avatar
Pierre Aubert committed
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42
pull_extra_module("PhoenixGenerator" "https://gitlab.in2p3.fr/CTA-LAPP/PHOENIX_LIBS/PhoenixGenerator.git")
pull_extra_module("PhoenixCompareFile" "https://gitlab.in2p3.fr/CTA-LAPP/PHOENIX_LIBS/PhoenixCompareFile.git")

include_directories(${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR})
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/src ${CMAKE_CURRENT_SOURCE_DIR}/src/Stmt)

phoenix_create_find(ParserGenerator convolutionnator_lib convolutionFormat.h "" "OptionParser" "FileParser" "StringUtils")

set(EXTRA_DEPENDENCIES option_parser file_parser tensor_alloc data_stream)

set(EXTRA_GRAPH_DEPENDENCIES convolutionnator_lib ${EXTRA_DEPENDENCIES})

add_definitions(-DCMAKE_INSTALL_PREFIX="${CMAKE_INSTALL_PREFIX}")

add_subdirectory(src)
add_subdirectory(share)

if(SELF_TESTS_MODE)
	include(CTest)
	add_subdirectory(TESTS)
endif(SELF_TESTS_MODE)

if(DOC_MODE)
	pull_extra_module("PhoenixTex2Html" "https://gitlab.in2p3.fr/CTA-LAPP/PHOENIX_LIBS/PhoenixTex2Html.git")
	add_subdirectory(doc)
endif(DOC_MODE)

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