From 9a2228e22706c7f81c9d609d43258886b3d30767 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Offringa?= <offringa@astron.nl> Date: Wed, 8 Jul 2020 19:00:43 +0200 Subject: [PATCH] Install all necessary header files With this fix, DP3 PR 266 ( https://github.com/lofar-astron/DP3/pull/266 ) compiles. --- cpp/CMakeLists.txt | 9 +++------ cpp/common/CMakeLists.txt | 4 +--- cpp/coords/CMakeLists.txt | 2 -- cpp/gridded_response/CMakeLists.txt | 4 ++++ cpp/telescope/CMakeLists.txt | 5 +++++ 5 files changed, 13 insertions(+), 11 deletions(-) create mode 100644 cpp/gridded_response/CMakeLists.txt create mode 100644 cpp/telescope/CMakeLists.txt diff --git a/cpp/CMakeLists.txt b/cpp/CMakeLists.txt index e251a377..df288d25 100644 --- a/cpp/CMakeLists.txt +++ b/cpp/CMakeLists.txt @@ -1,11 +1,11 @@ #------------------------------------------------------------------------------ -# Add relevant subdirs add_subdirectory(common) add_subdirectory(coords) - +add_subdirectory(gridded_response) add_subdirectory(hamaker) add_subdirectory(lobes) add_subdirectory(oskar) +add_subdirectory(telescope) #------------------------------------------------------------------------------ add_library(everybeam SHARED @@ -31,8 +31,6 @@ install ( EXPORT EveryBeamTargets DESTINATION lib) -#------------------------------------------------------------------------------ -# Install headers install (FILES Antenna.h BeamFormer.h @@ -42,8 +40,7 @@ install (FILES Station.h # Related to new API: load.h - # Not needed as yet: - # options.h + options.h DESTINATION "include/${CMAKE_PROJECT_NAME}") install( diff --git a/cpp/common/CMakeLists.txt b/cpp/common/CMakeLists.txt index f115fb1a..70d924db 100644 --- a/cpp/common/CMakeLists.txt +++ b/cpp/common/CMakeLists.txt @@ -1,9 +1,7 @@ -#------------------------------------------------------------------------------ -# Install headers install (FILES casa_utils.h Constants.h MathUtil.h MutablePtr.h Types.h -DESTINATION "include/${CMAKE_PROJECT_NAME}/common") \ No newline at end of file +DESTINATION "include/${CMAKE_PROJECT_NAME}/common") diff --git a/cpp/coords/CMakeLists.txt b/cpp/coords/CMakeLists.txt index 34f2e0c3..b5ea2ad5 100644 --- a/cpp/coords/CMakeLists.txt +++ b/cpp/coords/CMakeLists.txt @@ -1,5 +1,3 @@ -#------------------------------------------------------------------------------ -# Install headers install (FILES ITRFConverter.h ITRFDirection.h diff --git a/cpp/gridded_response/CMakeLists.txt b/cpp/gridded_response/CMakeLists.txt new file mode 100644 index 00000000..134f6ee0 --- /dev/null +++ b/cpp/gridded_response/CMakeLists.txt @@ -0,0 +1,4 @@ +install (FILES + griddedresponse.h + lofargrid.h +DESTINATION "include/${CMAKE_PROJECT_NAME}/gridded_response") diff --git a/cpp/telescope/CMakeLists.txt b/cpp/telescope/CMakeLists.txt new file mode 100644 index 00000000..27539ca1 --- /dev/null +++ b/cpp/telescope/CMakeLists.txt @@ -0,0 +1,5 @@ +install (FILES + lofar.h + telescope.h +DESTINATION "include/${CMAKE_PROJECT_NAME}/telescope") + -- GitLab