File: FindLibRocket.cmake

package info (click to toggle)
fife 0.4.2-11
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 25,312 kB
  • sloc: cpp: 42,647; xml: 18,881; python: 13,521; makefile: 24
file content (24 lines) | stat: -rw-r--r-- 889 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# - Try to find libRocket
# and define
#
#  LIBROCKET_FOUND          - System has libRocket
#  LIBROCKET_INCLUDE_DIRS   - The LibRocket include directories
#  LIBROCKET_LIBRARIES      - The libraries needed to use LibRocket
#  LIBROCKET_DEFINITIONS    - Compiler switches required for using LibRocket

find_path(LIBROCKET_INCLUDE_DIR Rocket/Core.h
          PATH_SUFFIXES Rocket )

find_library(LIBROCKET_LIBRARY NAMES RocketCore RocketCore_d)

set(LIBROCKET_LIBRARIES ${LIBROCKET_LIBRARY} )
set(LIBROCKET_INCLUDE_DIRS ${LIBROCKET_INCLUDE_DIR} )

include(FindPackageHandleStandardArgs)

# handle the QUIETLY and REQUIRED arguments and set LIBROCKET_FOUND to TRUE
# if all listed variables are TRUE
find_package_handle_standard_args(LibRocket DEFAULT_MSG
                                  LIBROCKET_LIBRARY LIBROCKET_INCLUDE_DIR)

mark_as_advanced(LIBROCKET_INCLUDE_DIR LIBROCKET_LIBRARY )