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

Move all hamaker related files to hamaker subdirectory

parent 450ae0bb
No related branches found
No related tags found
No related merge requests found
...@@ -2,8 +2,15 @@ cmake_minimum_required(VERSION 3.0.0) ...@@ -2,8 +2,15 @@ cmake_minimum_required(VERSION 3.0.0)
project(lofarbeam) 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_subdirectory(external)
# Add element models
add_subdirectory(hamaker)
add_subdirectory(lobes) add_subdirectory(lobes)
add_subdirectory(oskar) add_subdirectory(oskar)
...@@ -12,13 +19,6 @@ cmake_policy(SET CMP0074 NEW) ...@@ -12,13 +19,6 @@ cmake_policy(SET CMP0074 NEW)
find_package(HDF5 COMPONENTS CXX REQUIRED) find_package(HDF5 COMPONENTS CXX REQUIRED)
include_directories(${HDF5_INCLUDE_DIR}) 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) set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/CMake)
...@@ -36,21 +36,19 @@ add_library(stationresponse SHARED ...@@ -36,21 +36,19 @@ add_library(stationresponse SHARED
AntennaModelLBA.cc AntennaModelLBA.cc
DualDipoleAntenna.cc DualDipoleAntenna.cc
ElementResponseModel.cc ElementResponseModel.cc
HamakerElementResponse.cc
ITRFConverter.cc ITRFConverter.cc
ITRFDirection.cc ITRFDirection.cc
LofarMetaDataUtil.cc LofarMetaDataUtil.cc
MathUtil.cc MathUtil.cc
Station.cc Station.cc
TileAntenna.cc TileAntenna.cc
Types.cc Types.cc)
HamakerCoeff.cc)
set_target_properties(stationresponse PROPERTIES VERSION 3) set_target_properties(stationresponse PROPERTIES VERSION 3)
target_link_libraries(stationresponse ${CASACORE_LIBRARIES}) target_link_libraries(stationresponse ${CASACORE_LIBRARIES})
target_link_libraries(stationresponse oskar) target_link_libraries(stationresponse hamaker oskar)
install (TARGETS stationresponse DESTINATION lib) install (TARGETS stationresponse DESTINATION lib)
......
...@@ -24,7 +24,6 @@ ...@@ -24,7 +24,6 @@
#include "DualDipoleAntenna.h" #include "DualDipoleAntenna.h"
#include "Constants.h" #include "Constants.h"
#include "MathUtil.h" #include "MathUtil.h"
#include "HamakerElementResponse.h"
namespace LOFAR namespace LOFAR
{ {
......
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
#include "Station.h" #include "Station.h"
#include "MathUtil.h" #include "MathUtil.h"
#include "HamakerElementResponse.h" #include "hamaker/HamakerElementResponse.h"
#include "oskar/OSKARElementResponse.h" #include "oskar/OSKARElementResponse.h"
#include "DualDipoleAntenna.h" #include "DualDipoleAntenna.h"
#include "TileAntenna.h" #include "TileAntenna.h"
......
...@@ -23,7 +23,6 @@ ...@@ -23,7 +23,6 @@
#include "TileAntenna.h" #include "TileAntenna.h"
#include "Constants.h" #include "Constants.h"
#include "MathUtil.h" #include "MathUtil.h"
#include "HamakerElementResponse.h"
namespace LOFAR 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 "HamakerCoeff.h"
#include <memory> #include <memory>
......
File moved
File moved
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment