~robot3d-team/robot3d/trunk

« back to all changes in this revision

Viewing changes to cmake/Modules/FindSymbricator3D.cmake

  • Committer: Anne van Rossum
  • Date: 2010-08-10 15:58:55 UTC
  • Revision ID: anne@gamix-20100810155855-kve7x2vwouagdij9
Initial import

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# - Try to find Robot3D
 
2
# Once done, this will define
 
3
#
 
4
#  Robot3D_FOUND - system has Robot3D
 
5
#  Robot3D_INCLUDE_DIRS - the Robot3D include directories
 
6
#  Robot3D_LIBRARIES - link these to use Robot3D
 
7
 
 
8
include(LibFindMacros)
 
9
 
 
10
# Dependencies (not useful for Robot3D)
 
11
#libfind_package(Robot3D symbicator-simulation1)
 
12
 
 
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)
 
15
 
 
16
# Include dir
 
17
find_path(Robot3D_INCLUDE_DIR
 
18
  NAMES Robot3D
 
19
  PATHS ${Robot3D_PKGCONF_INCLUDE_DIRS}
 
20
)
 
21
 
 
22
# Finally the library itself
 
23
find_library(Robot3D_LIBRARY
 
24
  NAMES symbicator-simulation1
 
25
  PATHS ${Robot3D_PKGCONF_LIBRARY_DIRS}
 
26
)
 
27
 
 
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)
 
33