forked from NOAA-GSL/rrfs_utl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
26 lines (23 loc) · 904 Bytes
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
list(APPEND src_adjust_soiltq
adjust_soiltq.f90
unfill_fv3lam_grid2.f90
gsl_adjust_soiltq_mod.f90
module_bkio_fv3lam_parall.f90
genqsat.f90
constants.f90)
set(EXE "adjust_soiltq.exe")
add_executable(adjust_soiltq.exe ${src_adjust_soiltq})
target_link_libraries(adjust_soiltq.exe PRIVATE ${PROJECT_NAME}::ncio
PRIVATE w3emc::w3emc_4
PRIVATE gsi::gsi
PRIVATE PRIVATE NetCDF::NetCDF_Fortran
PRIVATE MPI::MPI_Fortran)
if(OpenMP_Fortran_FOUND)
target_link_libraries(adjust_soiltq.exe PRIVATE OpenMP::OpenMP_Fortran)
endif()
install(
TARGETS adjust_soiltq.exe
EXPORT ${PROJECT_NAME}Exports
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR})