-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathFindACG.cmake
38 lines (31 loc) · 1021 Bytes
/
FindACG.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
37
# - Try to find ACG
# Once done this will define
#
# ACG_FOUND - system has ACG
# ACG_INCLUDE_DIR - theACG include directory
# ACG_LIBRARY - Link these to use ACG
# ACG_LIBRARY_DIR - Library DIR of ACG
#
IF (ACG_INCLUDE_DIRS)
# Already in cache, be silent
SET(ACG_FIND_QUIETLY TRUE)
ENDIF (ACG_INCLUDE_DIRS)
#SET(ACG_LIBRARY_DIR "" CACHE INTERNAL "Path to ACG Library")
FIND_PATH(ACG_INCLUDE_DIR ACG/QtWidgets/QtBaseViewer.hh
PATHS /usr/local/include
/usr/include
"${CMAKE_SOURCE_DIR}/"
"${CMAKE_SOURCE_DIR}/../"
/ACG/acgdev/gcc-4.3-x86_64/OM2/ACG-2.0/include
)
IF (ACG_INCLUDE_DIR )
SET(ACG_FOUND TRUE)
# TODO: Set correct library path!!
SET(ACG_LIBRARY_DIR "${ACG_INCLUDE_DIR}/../lib/" CACHE PATH "Path to ACG Library")
SET(ACG_LIBRARY "ACG")
IF(WIN32)
add_definitions (-DACGDLL -DUSEACG )
ENDIF(WIN32)
ELSE (ACG_INCLUDE_DIR)
SET(ACG_FOUND FALSE )
ENDIF (ACG_INCLUDE_DIR )