# This is a cmake include segment, invoked from ./i4r4 or ./i4r8. It # is written in a generic form with parameters specified by # i4r4/CMakeLists.txt # i4r8/CMakeLists.txt # # Expected parameters: (see i4r4/CMakeLists.txt and i4r8/CMakeLists.txt) # # irix : name of the lib-varient module # irix_lib : name of the lib-varient. # irix_Fortran_FLAGS : Fortran_FLAGS used to the lib-varient. # irix_Fortran_MODULE_DIRECTORY : Fortran_MODULE_DIRECTORY (where to leave # the .mod files of the lib-varent module). file(GLOB SRCS ../*.[fF]) # invoked from subdirectory CMakeLists.txt files set_source_files_properties( ${SRCS} COMPILE_FLAGS ${ixrx_Fortran_FLAGS}) add_library( ${ixrx_lib} STATIC ${SRCS} ) set_target_properties( ${ixrx_lib} PROPERTIES Fortran_MODULE_DIRECTORY ${ixrx_Fortran_MODULE_DIRECTORY} ) # message("HEY w3emc ${ixrx} lib is called ${ixrx_lib}") # message("HEY w3emc ${ixrx} Fortran_FLAGS are ${ixrx_Fortran_FLAGS}") # message("HEY w3emc ${ixrx} Fortran_MODULE_DIRECTORY is at ${ixrx_Fortran_MODULE_DIRECTORY}") target_link_libraries( ${ixrx_lib} ${SIGIO_LIBRARY} )