• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# You can set your own route by setting FRUIT_INSTALLED_DIR:
2# set(ENV{FRUIT_INSTALLED_DIR} "/path/to/fruit/build")
3
4find_path(FRUIT_INCLUDE_DIR fruit.h
5        HINTS (
6            ${FRUIT_INSTALLED_DIR}
7            /usr
8            /usr/local
9            )
10        PATH_SUFFIXES include/fruit
11        )
12
13find_library(FRUIT_LIBRARY
14        NAMES fruit
15        HINTS (
16            ${FRUIT_INSTALLED_DIR}
17            /usr
18            /usr/local
19            )
20        PATH_SUFFIXES lib lib64
21        )
22
23include(${CMAKE_ROOT}/Modules/FindPackageHandleStandardArgs.cmake)
24FIND_PACKAGE_HANDLE_STANDARD_ARGS(Fruit DEFAULT_MSG FRUIT_LIBRARY FRUIT_INCLUDE_DIR)
25