CMakeLists.txt 1.08 KB
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("PhoenixHPCProxy" "1.4.0"
Pierre Aubert's avatar
Pierre Aubert committed
7 8 9 10 11 12 13 14 15 16 17 18 19 20
		"Program which generates proxy library to handle automatically all kind of architectures and CPU extentions (AVX, AVX2, AVX512F, SSE4, etc)"
		"https://gitlab.in2p3.fr/CTA-LAPP/PHOENIX_LIBS/PhoenixHPCProxy")

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

include_directories(${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR})

include_directories(${CMAKE_CURRENT_SOURCE_DIR}/src)

add_subdirectory(src)

if(SELF_TESTS_MODE)
Pierre Aubert's avatar
Pierre Aubert committed
21
	include(CTest)
22
	pull_extra_module("MicroBenchmark" "https://gitlab.in2p3.fr/CTA-LAPP/PHOENIX_LIBS/MicroBenchmark.git")
Pierre Aubert's avatar
Pierre Aubert committed
23 24 25 26 27 28
	add_subdirectory(TESTS)
endif(SELF_TESTS_MODE)

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