Skip to content
Snippets Groups Projects
Commit 1404ce80 authored by Marcel Loose's avatar Marcel Loose :sunglasses:
Browse files

Bug 1310: Added Pipeline to CMake build. Fixed Python install path bug

parent dfc82488
No related branches found
No related tags found
No related merge requests found
...@@ -40,6 +40,7 @@ lofar_add_subdirectory(ParmDB) ...@@ -40,6 +40,7 @@ lofar_add_subdirectory(ParmDB)
lofar_add_subdirectory(Calibration) lofar_add_subdirectory(Calibration)
lofar_add_subdirectory(DP3) lofar_add_subdirectory(DP3)
lofar_add_subdirectory(Imager) lofar_add_subdirectory(Imager)
lofar_add_subdirectory(Pipeline) lofar_add_subdirectory(Pipeline)
lofar_add_subdirectory(pyparmdb) lofar_add_subdirectory(pyparmdb)
......
...@@ -32,6 +32,7 @@ set(inst_HEADERS ...@@ -32,6 +32,7 @@ set(inst_HEADERS
DataBuffer.h DataBuffer.h
TimeBuffer.h TimeBuffer.h
RunDetails.h RunDetails.h
ProgressMeter.h
Pipeline.h) Pipeline.h)
# Create symbolic link to include directory. # Create symbolic link to include directory.
......
...@@ -34,6 +34,7 @@ lofar_add_library(dppp ...@@ -34,6 +34,7 @@ lofar_add_library(dppp
DataBuffer.cc DataBuffer.cc
TimeBuffer.cc TimeBuffer.cc
RunDetails.cc RunDetails.cc
ProgressMeter.cc
Pipeline.cc) Pipeline.cc)
lofar_add_bin_program(CS1_IDPPP IDPPP.cc PipelineProcessControl.cc) lofar_add_bin_program(CS1_IDPPP IDPPP.cc PipelineProcessControl.cc)
......
# $Id$
#
# Copyright (C) 2008-2009
# ASTRON (Netherlands Foundation for Research in Astronomy)
# P.O.Box 2, 7990 AA Dwingeloo, The Netherlands, seg@astron.nl
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
cmake_minimum_required(VERSION 2.6)
## ---------------------------------------------------------------------------
## Preamble: set compilers
## ---------------------------------------------------------------------------
include(LofarInit)
## ---------------------------------------------------------------------------
## Project characteristics
## ---------------------------------------------------------------------------
project(Pipeline)
include(LofarGeneral)
include(LofarAddPackage)
lofar_add_package(${PROJECT_NAME} 0.1 DEPENDS pytools)
## ---------------------------------------------------------------------------
## External packages
## ---------------------------------------------------------------------------
include(LofarFindPackage)
lofar_find_package(Python REQUIRED)
## ---------------------------------------------------------------------------
## Generate configuration header file.
## ---------------------------------------------------------------------------
include(LofarConfig)
## ---------------------------------------------------------------------------
## Subdirectories
## ---------------------------------------------------------------------------
add_subdirectory(Core)
add_subdirectory(library)
# $Id$
#
# Copyright (C) 2008-2009
# ASTRON (Netherlands Foundation for Research in Astronomy)
# P.O.Box 2, 7990 AA Dwingeloo, The Netherlands, seg@astron.nl
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
include(PythonInstall)
# Python modules.
python_install(
__init__.py
Observation.py
sysconfig.py
DESTINATION lofar/pipeline)
# Python scripts
install(PROGRAMS
dppp_node.py
DPPP.py
MakeVDS.py
MWImager.py
StandardImagingPipeline.py
DESTINATION bin)
...@@ -48,12 +48,14 @@ macro(python_install) ...@@ -48,12 +48,14 @@ macro(python_install)
message(FATAL_ERROR "python_install: destination directory invalid") message(FATAL_ERROR "python_install: destination directory invalid")
endif(_dest_dir MATCHES "^$" OR _dest_dir MATCHES ";") endif(_dest_dir MATCHES "^$" OR _dest_dir MATCHES ";")
# Set python package install directory.
set(_dest_dir "${PYTHON_INSTALL_DIR}/${_dest_dir}") set(_dest_dir "${PYTHON_INSTALL_DIR}/${_dest_dir}")
# Byte-compile each Python file and add both .py and .pyc to install list. # Byte-compile each Python file and add both .py and .pyc to install list.
file(RELATIVE_PATH _rel_path ${CMAKE_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR})
set(_pyc_files) set(_pyc_files)
foreach(_py ${_py_files}) foreach(_py ${_py_files})
set(_comment "Byte-compiling ${_py}") set(_comment "Byte-compiling ${_rel_path}/${_py}")
set(_pyc ${CMAKE_CURRENT_BINARY_DIR}/${_py}c) set(_pyc ${CMAKE_CURRENT_BINARY_DIR}/${_py}c)
set(_py ${CMAKE_CURRENT_SOURCE_DIR}/${_py}) set(_py ${CMAKE_CURRENT_SOURCE_DIR}/${_py})
add_custom_command(OUTPUT ${_pyc} add_custom_command(OUTPUT ${_pyc}
......
...@@ -34,5 +34,4 @@ lofar_add_bin_program(versionpyparameterset ...@@ -34,5 +34,4 @@ lofar_add_bin_program(versionpyparameterset
# Install Python modules # Install Python modules
include(PythonInstall) include(PythonInstall)
python_install(__init__.py python_install(__init__.py DESTINATION lofar/parameterset)
DESTINATION ${PYTHON_INSTALL_DIR}/lofar/parameterset)
...@@ -20,5 +20,5 @@ ...@@ -20,5 +20,5 @@
include(PythonInstall) include(PythonInstall)
python_install(__init__.py DESTINATION ${PYTHON_INSTALL_DIR}/lofar) python_install(__init__.py DESTINATION lofar)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment