Skip to content
Snippets Groups Projects
Commit 13f72768 authored by Bram Veenboer's avatar Bram Veenboer
Browse files

Merge branch 'hamaker'

parents 450ae0bb 00559881
No related branches found
No related tags found
No related merge requests found
......@@ -2,8 +2,15 @@ cmake_minimum_required(VERSION 3.0.0)
project(lofarbeam)
# Configure directory for data files
set(CMAKE_INSTALL_DATA_DIR "${CMAKE_INSTALL_PREFIX}/data")
message("Storing data in: " ${CMAKE_INSTALL_DATA_DIR})
configure_file(${CMAKE_SOURCE_DIR}/CMake/config.h.in ${CMAKE_BINARY_DIR}/config.h)
add_subdirectory(external)
# Add element models
add_subdirectory(hamaker)
add_subdirectory(lobes)
add_subdirectory(oskar)
......@@ -12,13 +19,6 @@ cmake_policy(SET CMP0074 NEW)
find_package(HDF5 COMPONENTS CXX REQUIRED)
include_directories(${HDF5_INCLUDE_DIR})
set(CMAKE_INSTALL_DATA_DIR "${CMAKE_INSTALL_PREFIX}/data")
message("Storing data in: " ${CMAKE_INSTALL_DATA_DIR})
install(FILES "${CMAKE_SOURCE_DIR}/HamakerHBACoeff.h5" DESTINATION ${CMAKE_INSTALL_DATA_DIR})
install(FILES "${CMAKE_SOURCE_DIR}/HamakerLBACoeff.h5" DESTINATION ${CMAKE_INSTALL_DATA_DIR})
configure_file(${CMAKE_SOURCE_DIR}/CMake/config.h.in ${CMAKE_BINARY_DIR}/config.h)
include_directories(${CMAKE_BINARY_DIR})
set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/CMake)
......@@ -36,21 +36,19 @@ add_library(stationresponse SHARED
AntennaModelLBA.cc
DualDipoleAntenna.cc
ElementResponseModel.cc
HamakerElementResponse.cc
ITRFConverter.cc
ITRFDirection.cc
LofarMetaDataUtil.cc
MathUtil.cc
Station.cc
TileAntenna.cc
Types.cc
HamakerCoeff.cc)
Types.cc)
set_target_properties(stationresponse PROPERTIES VERSION 3)
target_link_libraries(stationresponse ${CASACORE_LIBRARIES})
target_link_libraries(stationresponse oskar)
target_link_libraries(stationresponse hamaker oskar)
install (TARGETS stationresponse DESTINATION lib)
......
......@@ -24,7 +24,6 @@
#include "DualDipoleAntenna.h"
#include "Constants.h"
#include "MathUtil.h"
#include "HamakerElementResponse.h"
namespace LOFAR
{
......
......@@ -23,7 +23,7 @@
#include "Station.h"
#include "MathUtil.h"
#include "HamakerElementResponse.h"
#include "hamaker/HamakerElementResponse.h"
#include "oskar/OSKARElementResponse.h"
#include "DualDipoleAntenna.h"
#include "TileAntenna.h"
......
......@@ -23,7 +23,6 @@
#include "TileAntenna.h"
#include "Constants.h"
#include "MathUtil.h"
#include "HamakerElementResponse.h"
namespace LOFAR
{
......
# directory for config.h
include_directories(${CMAKE_BINARY_DIR})
# build libhamaker.so
add_library(hamaker SHARED
HamakerElementResponse.cc
HamakerCoeff.cc)
# install coefficients
message("install hamaker in: " ${CMAKE_INSTALL_DATA_DIR})
install(FILES "${CMAKE_SOURCE_DIR}/hamaker/HamakerHBACoeff.h5" DESTINATION ${CMAKE_INSTALL_DATA_DIR})
install(FILES "${CMAKE_SOURCE_DIR}/hamaker/HamakerLBACoeff.h5" DESTINATION ${CMAKE_INSTALL_DATA_DIR})
\ No newline at end of file
File moved
File moved
File moved
#include "ElementResponse.h"
#include "../ElementResponse.h"
#include "HamakerCoeff.h"
#include <memory>
......
File moved
File moved
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment