INCLUDE(FortranSettings) TRIBITS_SUBPACKAGE(PLT) SET(PLT_VERSION_MAJOR "1") SET(PLT_VERSION_MINOR "0") SET(PLT_VERSION_PATCH "0") SET(PLT_VERSION "${PLT_VERSION_MAJOR}.${PLT_VERSION_MINOR}") SET(PLT_VERSION_FULL "${PLT_VERSION}.${PLT_VERSION_PATCH}") SET(SOURCES "") TRIBITS_SET_AND_INC_DIRS(DIR ${CMAKE_CURRENT_SOURCE_DIR}) APPEND_GLOB(SOURCES ${DIR}/*.f ${DIR}/*.F ${DIR}/*.c) TRIBITS_ADD_LIBRARY( plt STATIC SOURCES ${SOURCES} ) SET_PROPERTY(TARGET plt PROPERTY POSITION_INDEPENDENT_CODE TRUE) TRIBITS_SUBPACKAGE_POSTPROCESS()