CMakeLists.txt 1.9 KB
Newer Older
1
# $Id$
2

3
cmake_minimum_required(VERSION 2.8)
4

5 6 7
## ---------------------------------------------------------------------------
## Preamble: set compilers
## ---------------------------------------------------------------------------
8
include(CMake/LofarInit.cmake)
9

10 11 12 13 14 15 16
## ---------------------------------------------------------------------------
## Project characteristics
## ---------------------------------------------------------------------------
project(LOFAR)
include(LofarGeneral)

## ---------------------------------------------------------------------------
17
## LOFAR packages: build all, unless BUILD_PACKAGES was specified
18 19
## ---------------------------------------------------------------------------
include(LofarPackage)
20
if(NOT DEFINED BUILD_PACKAGES)
21
  lofar_add_package(Docker)
22 23 24 25 26 27
  lofar_add_package(LCS)
  lofar_add_package(CEP)
  lofar_add_package(RTCP)
  lofar_add_package(SAS)
  lofar_add_package(MAC)
  lofar_add_package(LCU)
28
  lofar_add_package(LTA)
29
  lofar_add_package(QA)
30
  lofar_add_package(CAL)
31 32 33 34 35 36 37
  lofar_add_package(SubSystems)
else(NOT DEFINED BUILD_PACKAGES)
  separate_arguments(BUILD_PACKAGES)
  foreach(pkg ${BUILD_PACKAGES})
    lofar_add_package(${pkg} REQUIRED)
  endforeach(pkg ${BUILD_PACKAGES})
endif(NOT DEFINED BUILD_PACKAGES)
38

39 40 41 42 43
## ---------------------------------------------------------------------------
## Check if Doxygen is present; if so, generate doxygen configuration file.
## ---------------------------------------------------------------------------
include(LofarDoxygen)

44 45 46 47
## ---------------------------------------------------------------------------
## Generate configuration header file.
## ---------------------------------------------------------------------------
include(LofarConfig)
48 49 50 51 52 53

## ---------------------------------------------------------------------------
## Setup packaging with CPack
## ---------------------------------------------------------------------------
include(LofarCPack)