"Fossies" - the Fresh Open Source Software Archive

Member "fimex-1.4.1/modules/F90/CMakeLists.txt" (30 Oct 2019, 627 Bytes) of package /linux/privat/fimex-1.4.1.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 
    2 SET(libfimexf_SOURCES
    3   fimex.f90
    4   fimex2d.F90
    5 )
    6 
    7 LINK_DIRECTORIES(${PC_LIBRARY_DIRS} ${BOOST_LIBRARY_DIRS})
    8 
    9 FIMEX_ADD_LIBRARY(fimexf "${libfimexf_SOURCES}" libfimex "" "")
   10 
   11 INSTALL(FILES
   12   "${CMAKE_CURRENT_BINARY_DIR}/fimex.mod"
   13   "${CMAKE_CURRENT_BINARY_DIR}/fimex2d.mod"
   14   DESTINATION "${FIMEX_INSTALL_INCLUDEDIR}"
   15   )
   16 
   17 IF((ENABLE_FELT) AND (ENABLE_NETCDF))
   18   SET(F90_TESTS testFortran)
   19 ENDIF()
   20 
   21 FOREACH(T ${F90_TESTS})
   22   ADD_EXECUTABLE(${T} "${T}.F90")
   23   TARGET_LINK_LIBRARIES(${T} libfimexf)
   24   TARGET_COMPILE_DEFINITIONS(${T} PRIVATE -DTOP_SRCDIR="${CMAKE_SOURCE_DIR}")
   25   ADD_TEST(NAME ${T} COMMAND ${T})
   26 ENDFOREACH()
   27