forked from wdas/partio
-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy pathFindArnold.cmake
More file actions
29 lines (26 loc) · 1 KB
/
FindArnold.cmake
File metadata and controls
29 lines (26 loc) · 1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# - Arnold finder module
# This module searches for a valid Arnold instalation.
#
# Variables that will be defined:
# ARNOLD_FOUND Defined if a Arnold installation has been detected
# ARNOLD_LIBRARY Path to ai library
# ARNOLD_INCLUDE_DIR Path to the include directory
#
# Naming convention:
# Local variables of the form _arnold_foo
# Input variables from CMake of the form Arnold_FOO
# Output variables of the form ARNOLD_FOO
#
########################################################################## HDA
message(STATUS "################## FindArnold.cmake ##################")
########################################################################## HDA
find_library(ARNOLD_LIBRARY
NAMES ai
PATHS $ENV{ARNOLD_HOME}/bin
DOC "Arnold library")
find_path(ARNOLD_INCLUDE_DIR ai.h
PATHS $ENV{ARNOLD_HOME}/include
DOC "Arnold include path")
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(Arnold DEFAULT_MSG
ARNOLD_LIBRARY ARNOLD_INCLUDE_DIR)