-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathFindTurtle.cmake
54 lines (49 loc) · 1.42 KB
/
FindTurtle.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
SET(SEARCH_PATH_TURTLE "" CACHE PATH "Additional Turtle search path")
SET(TURTLE_DIR_SEARCH
$ENV{TURTLE_ROOT}
${SEARCH_PATH_TURTLE}
${TURTLE_DIR_SEARCH}
)
if(CMAKE_SYSTEM MATCHES "Windows")
if (EXISTS "C:/")
SET(TURTLE_DIR_SEARCH
${TURTLE_DIR_SEARCH}
"C:/Development/turtle/include/"
"C:/Development/turtle-1.3.0/include/"
"C:/Development/turtle-1.2.9/include/"
"C:/Development/turtle-1.2.8/include/"
"C:/Development/turtle-1.2.7/include/"
"C:/Development/turtle-1.2.6/include/"
"C:/Program Files/"
"C:/Program Files/turtle/"
)
endif()
if (EXISTS "D:/")
SET(TURTLE_DIR_SEARCH
${TURTLE_DIR_SEARCH}
"D:/Development/turtle/include/"
"D:/Development/turtle-1.3.0/include/"
"D:/Development/turtle-1.2.9/include/"
"D:/Development/turtle-1.2.8/include/"
"D:/Development/turtle-1.2.7/include/"
"D:/Development/turtle-1.2.6/include/"
"D:/Program Files/"
"D:/Program Files/turtle/"
)
endif()
endif()
if (CMAKE_SYSTEM MATCHES "Linux" )
SET(TURTLE_DIR_SEARCH
${TURTLE_DIR_SEARCH}
/usr/local/include
)
endif(CMAKE_SYSTEM MATCHES "Linux")
find_path(Turtle_INCLUDE_PATH turtle/mock.hpp
PATHS
${TURTLE_DIR_SEARCH}
)
# handle the QUIETLY and REQUIRED arguments and set TURTLE_FOUND to TRUE if
# all listed variables are TRUE
INCLUDE(FindPackageHandleStandardArgs)
FIND_PACKAGE_HANDLE_STANDARD_ARGS(Turtle DEFAULT_MSG Turtle_INCLUDE_PATH)
MARK_AS_ADVANCED(Turtle_INCLUDE_PATH)