FIND_PATH( LIBCPPCMS_INCLUDE_DIR cppcms/application.h)
FIND_LIBRARY( LIBCPPCMS_LIBRARY NAMES cppcms)
FIND_LIBRARY( LIBBOOSTER_LIBRARY NAMES booster)

IF( LIBCPPCMS_INCLUDE_DIR AND LIBCPPCMS_LIBRARY AND LIBBOOSTER_LIBRARY )
   SET( LIBCPPCMS_FOUND TRUE )
   SET( LIBCPPCMS_LIBRARIES ${LIBCPPCMS_LIBRARY} ${LIBBOOSTER_LIBRARY})
ENDIF( LIBCPPCMS_INCLUDE_DIR AND LIBCPPCMS_LIBRARY AND LIBBOOSTER_LIBRARY )

IF( LIBCPPCMS_FOUND )
   IF( NOT CPPCMS_FIND_QUIETLY )
      MESSAGE( STATUS "Found libcppcms: ${LIBCPPCMS_LIBRARY}" )
      MESSAGE( STATUS "Found libbooster: ${LIBBOOSTER_LIBRARY}" )
   ENDIF( NOT CPPCMS_FIND_QUIETLY )
ELSE( LIBCPPCMS_FOUND )
   IF( CPPCMS_FIND_REQUIRED )
      MESSAGE( FATAL_ERROR "Could not find libcppcms" )
   ENDIF( CPPCMS_FIND_REQUIRED )
ENDIF( LIBCPPCMS_FOUND )