-
Notifications
You must be signed in to change notification settings - Fork 20
/
StepConfig.cmake.in
65 lines (50 loc) · 1.92 KB
/
StepConfig.cmake.in
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
55
56
57
58
59
60
61
62
63
64
65
if( (NOT STEP_FOUND) OR (NOT Step_VERSION VERSION_EQUAL @Step_VERSION@) )
if(NOT Step_ROOT)
if(Step_DIR)
if(UNIX)
set(Step_ROOT ${Step_DIR}/../..)
else()
set(Step_ROOT ${Step_DIR})
endif()
else()
set(Step_ROOT ${CMAKE_CURRENT_SOURCE_DIR})
endif()
endif()
get_filename_component( Step_ROOT ${Step_ROOT} ABSOLUTE)
SET(Step_VERSION_MAJOR @Step_VERSION_MAJOR@ CACHE STRING "Version" FORCE)
SET(Step_VERSION_MINOR @Step_VERSION_MINOR@ CACHE STRING "Version" FORCE)
SET(Step_VERSION_PATCH @Step_VERSION_PATCH@ CACHE STRING "Version" FORCE)
SET(Step_SOVERSION @Step_SOVERSION@ CACHE STRING "Version" FORCE)
SET(Step_VERSION @Step_VERSION@ CACHE STRING "Version" FORCE)
SET(Step_VERSION_FULL @Step_VERSION_FULL@ CACHE STRING "Full Version" FORCE)
SET(LIB_POSTFIX @LIB_POSTFIX@)
MARK_AS_ADVANCED(LIB_POSTFIX)
SET(CMAKE_DEBUG_POSTFIX @CMAKE_DEBUG_POSTFIX@)
find_path(STEP_INCLUDE_DIR NAME Step/Config.h PATHS ${Step_ROOT}/include NO_DEFAULT_PATH)
find_path(STEP_INCLUDE_DIR NAME Step/Config.h)
find_library(STEP_LIBRARY_DEBUG
NAMES Step@CMAKE_DEBUG_POSTFIX@
PATHS ${Step_ROOT}/lib@LIB_POSTFIX@
NO_DEFAULT_PATH)
find_library(STEP_LIBRARY_DEBUG
NAMES Step@CMAKE_DEBUG_POSTFIX@ )
find_library(STEP_LIBRARY
NAMES Step
PATHS ${Step_ROOT}/lib@LIB_POSTFIX@
NO_DEFAULT_PATH)
find_library(STEP_LIBRARY
NAMES Step)
if(STEP_LIBRARY_DEBUG)
if (STEP_LIBRARY)
set(STEP_LIBRARIES optimized ${STEP_LIBRARY} debug ${STEP_LIBRARY_DEBUG})
else()
set(STEP_LIBRARIES ${STEP_LIBRARY_DEBUG})
endif()
else()
set(STEP_LIBRARIES ${STEP_LIBRARY})
endif()
include(FindPackageHandleStandardArgs)
FIND_PACKAGE_HANDLE_STANDARD_ARGS(Step
REQUIRED_VARS STEP_LIBRARIES STEP_INCLUDE_DIR
VERSION_VAR Step_VERSION_FULL)
endif()