2007-09-22 15:54:08 +00:00
|
|
|
|
2006-08-08 17:35:11 +00:00
|
|
|
# KADMOS_FOUND - system has KADMOS libs
|
|
|
|
# KADMOS_INCLUDE_DIR - the KADMOS include directory
|
|
|
|
# KADMOS_LIBRARIES - The libraries needed to use KADMOS
|
|
|
|
|
2007-09-22 15:54:08 +00:00
|
|
|
# Copyright (c) 2006, 2007 Laurent Montel, <montel@kde.org>
|
2006-09-09 21:46:46 +00:00
|
|
|
#
|
|
|
|
# Redistribution and use is allowed according to the terms of the BSD license.
|
|
|
|
# For details see the accompanying COPYING-CMAKE-SCRIPTS file.
|
|
|
|
|
2007-08-21 07:26:30 +00:00
|
|
|
if (KADMOS_INCLUDE_DIR AND KADMOS_LIBRARY)
|
2006-08-08 17:35:11 +00:00
|
|
|
# Already in cache, be silent
|
2007-03-30 12:59:12 +00:00
|
|
|
set(Kadmos_FIND_QUIETLY TRUE)
|
2007-08-21 07:26:30 +00:00
|
|
|
endif (KADMOS_INCLUDE_DIR AND KADMOS_LIBRARY)
|
2006-08-08 17:35:11 +00:00
|
|
|
|
2007-08-06 18:59:11 +00:00
|
|
|
FIND_PATH(KADMOS_INCLUDE_DIR kadmos.h)
|
|
|
|
|
|
|
|
FIND_PATH(KADMOS_LIBRARY NAMES librep.a)
|
2006-08-08 17:35:11 +00:00
|
|
|
|
2007-09-22 15:54:08 +00:00
|
|
|
include(FindPackageHandleStandardArgs)
|
|
|
|
FIND_PACKAGE_HANDLE_STANDARD_ARGS(Kadmos DEFAULT_MSG KADMOS_INCLUDE_DIR KADMOS_LIBRARY )
|
2006-08-08 17:35:11 +00:00
|
|
|
|
|
|
|
MARK_AS_ADVANCED(KADMOS_INCLUDE_DIR KADMOS_LIBRARIES KADMOS_LIBRARY)
|
|
|
|
|