-
Notifications
You must be signed in to change notification settings - Fork 20
/
UseAIGS.cmake
36 lines (30 loc) · 933 Bytes
/
UseAIGS.cmake
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
30
31
32
33
34
35
36
#
# This module is provided as AIGS_USE_FILE by AIGSConfig.cmake.
# It can be INCLUDEd in a project to load the needed compiler and linker
# settings to use AIGS:
# FIND_PACKAGE(AIGS REQUIRED)
# INCLUDE(${AIGS_USE_FILE})
#
IF(NOT AIGS_USE_FILE_INCLUDED)
SET(AIGS_USE_FILE_INCLUDED 1)
# Add include directories needed to use AIGS.
INCLUDE_DIRECTORIES(${AIGS_INCLUDE_DIRS})
# Add link directories needed to use AIGS.
LINK_DIRECTORIES(${AIGS_LIBRARY_DIRS})
#
# VTK
#
IF(NOT VTK_DIR)
# Use AIGS_VTK_DIR or find a new one
IF(AIGS_VTK_DIR)
SET(VTK_DIR ${AIGS_VTK_DIR} CACHE PATH "Path to VTK build dir")
INCLUDE(${VTK_DIR}/VTKConfig.cmake)
ELSE(AIGS_VTK_DIR)
FIND_PACKAGE(VTK REQUIRED)
ENDIF(AIGS_VTK_DIR)
ELSE(NOT VTK_DIR)
INCLUDE(${VTK_DIR}/VTKConfig.cmake)
ENDIF(NOT VTK_DIR)
# Include the VTK use file
INCLUDE(${VTK_USE_FILE})
ENDIF(NOT AIGS_USE_FILE_INCLUDED)