1 ############################################################################
6 # Licensed under the Apache License, Version 2.0 (the "License");
7 # you may not use this file except in compliance with the License.
8 # You may obtain a copy of the License at
10 # http://www.apache.org/licenses/LICENSE-2.0
12 # Unless required by applicable law or agreed to in writing, software
13 # distributed under the License is distributed on an "AS IS" BASIS,
14 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 # See the License for the specific language governing permissions and
16 # limitations under the License.
18 ############################################################################
20 FIND_PATH(MURPHY_INCLUDE_DIR murphy/common.h
24 FIND_LIBRARY(MURPHY_LIBRARY
29 FIND_LIBRARY(DOMCTL_LIBRARY
30 NAMES murphy-domain-controller
34 FIND_LIBRARY(MURPHY_DBUS_LIBRARY
35 NAMES murphy-dbus-libdbus
39 SET( MURPHY_FOUND "NO" )
43 IF(MURPHY_DBUS_LIBRARY)
44 SET( MURPHY_FOUND "YES" )
45 SET( MURPHY_LIBRARY "${DOMCTL_LIBRARY}" "${MURPHY_LIBRARY}" "${MURPHY_DBUS_LIBRARY}")
46 message(STATUS "Found MURPHY libs: ${MURPHY_LIBRARY}")
47 message(STATUS "Found MURPHY include: ${MURPHY_INCLUDE_DIR}")
48 ENDIF(MURPHY_DBUS_LIBRARY)