Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
cmake_minimum_required( VERSION 3.12 FATAL_ERROR )

project( opsinputs VERSION 0.1 LANGUAGES C CXX Fortran )
set( CMAKE_CXX_STANDARD 17 )
set( CMAKE_CXX_STANDARD_REQUIRED ON )
set( CMAKE_CXX_EXTENSIONS OFF )

set( CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake;${CMAKE_MODULE_PATH})

Expand Down
42 changes: 4 additions & 38 deletions etc/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,43 +1,9 @@
# (C) Crown Copyright 2021, the Met Office. All rights reserved.
#

# Include macros for creating links and symlinks
include( opsinputs_functions )
file(INSTALL "global" "ukv" DESTINATION "${CMAKE_CURRENT_BINARY_DIR}/")

# Add list of resource files
list( APPEND opsinputs_etc
global/cx/ABIClr.nl
global/cx/AHIClr.nl
global/cx/AIRS.nl
global/cx/AMSR.nl
global/cx/ATMS.nl
global/cx/ATOVS.nl
global/cx/CrIS.nl
global/cx/GMIlow.nl
global/cx/GMIhigh.nl
global/cx/GPSRO.nl
global/cx/GroundGPS.nl
global/cx/IASI.nl
global/cx/MWRI.nl
global/cx/SEVIRIClr.nl
global/cx/SatTCWV.nl
global/cx/Sonde.nl
global/cx/SSMIS.nl
global/varobs/ABIClr.nl
global/varobs/AHIClr.nl
global/varobs/AIRS.nl
global/varobs/ATMS.nl
global/varobs/ATOVS.nl
global/varobs/CrIS.nl
global/varobs/GPSRO.nl
global/varobs/IASI.nl
global/varobs/SEVIRIClr.nl
global/varobs/Scatwind.nl
global/varobs/Sonde.nl
ukv/cx/Sonde.nl
ukv/varobs/Sonde.nl
install(
DIRECTORY "global" "ukv"
DESTINATION "${CMAKE_INSTALL_SYSCONFDIR}/${PROJECT_NAME}/"
)

file(MAKE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/global/cx)
file(MAKE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/global/varobs)
CREATE_SYMLINKS( ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR} ${opsinputs_etc} )
Loading