1
# - Try to find Robot3D
2
# Once done, this will define
4
# Robot3D_FOUND - system has Robot3D
5
# Robot3D_INCLUDE_DIRS - the Robot3D include directories
6
# Robot3D_LIBRARIES - link these to use Robot3D
10
# Dependencies (not useful for Robot3D)
11
#libfind_package(Robot3D symbicator-simulation1)
13
# Use pkg-config to get hints about paths (not useful for Robot3D, but it cannot hurt)
14
libfind_pkg_check_modules(Robot3D_PKGCONF Robot3D)
17
find_path(Robot3D_INCLUDE_DIR
19
PATHS ${Robot3D_PKGCONF_INCLUDE_DIRS}
22
# Finally the library itself
23
find_library(Robot3D_LIBRARY
24
NAMES symbicator-simulation1
25
PATHS ${Robot3D_PKGCONF_LIBRARY_DIRS}
28
# Set the include dir variables and the libraries and let libfind_process do the rest.
29
# NOTE: Singular variables for this library, plural for libraries this this lib depends on.
30
set(Robot3D_PROCESS_INCLUDES Robot3D_INCLUDE_DIR Robot3D_INCLUDE_DIRS)
31
set(Robot3D_PROCESS_LIBS Robot3D_LIBRARY Robot3D_LIBRARIES)
32
libfind_process(Robot3D)