1 if (GMM_INCLUDE_DIR) 2 # in cache already 3 set(GMM_FOUND TRUE) 4 else (GMM_INCLUDE_DIR) 5 6 find_path(GMM_INCLUDE_DIR NAMES gmm/gmm.h 7 PATHS 8 ${INCLUDE_INSTALL_DIR} 9 ${GMM_INCLUDE_PATH} 10 ) 11 12 include(FindPackageHandleStandardArgs) 13 FIND_PACKAGE_HANDLE_STANDARD_ARGS(GMM DEFAULT_MSG GMM_INCLUDE_DIR ) 14 15 mark_as_advanced(GMM_INCLUDE_DIR) 16 17 endif(GMM_INCLUDE_DIR) 18