forked from cstb/ifc-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ifc2x3Config.cmake.in
66 lines (50 loc) · 2.16 KB
/
ifc2x3Config.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
66
if( (NOT IFC2X3_FOUND) OR (NOT ifc2x3_sdk_VERSION VERSION_EQUAL @ifc2x3_sdk_VERSION@) )
find_package(Step @Step_VERSION_FULL@ REQUIRED)
if(NOT ifc2x3_ROOT)
if(ifc2x3_DIR)
if(UNIX)
set(ifc2x3_ROOT ${ifc2x3_DIR}/../..)
else()
set(ifc2x3_ROOT ${ifc2x3_DIR})
endif()
else()
set(ifc2x3_ROOT ${CMAKE_CURRENT_SOURCE_DIR})
endif()
endif()
get_filename_component( ifc2x3_ROOT ${ifc2x3_ROOT} ABSOLUTE)
SET(ifc2x3_sdk_VERSION_MAJOR @ifc2x3_sdk_VERSION_MAJOR@ CACHE STRING "Version" FORCE)
SET(ifc2x3_sdk_VERSION_MINOR @ifc2x3_sdk_VERSION_MINOR@ CACHE STRING "Version" FORCE)
SET(ifc2x3_sdk_VERSION_PATCH @ifc2x3_sdk_VERSION_PATCH@ CACHE STRING "Version" FORCE)
SET(ifc2x3_sdk_SOVERSION @ifc2x3_sdk_SOVERSION@ CACHE STRING "Version" FORCE)
SET(ifc2x3_sdk_VERSION @ifc2x3_sdk_VERSION@ CACHE STRING "Version" FORCE)
SET(ifc2x3_sdk_VERSION_FULL @ifc2x3_sdk_VERSION_FULL@ CACHE STRING "Full Version" FORCE)
find_path(IFC2X3_INCLUDE_DIR NAME ifc2x3/ExpressDataSet.h PATHS ${ifc2x3_ROOT}/include NO_DEFAULT_PATH)
find_path(IFC2X3_INCLUDE_DIR NAME ifc2x3/ExpressDataSet.h)
set(IFC2X3_INCLUDE_DIRS ${STEP_INCLUDE_DIR} ${IFC2X3_INCLUDE_DIR})
find_library(IFC2X3_LIBRARY_DEBUG
NAMES ifc2x3@CMAKE_DEBUG_POSTFIX@
PATHS ${ifc2x3_ROOT}/lib@LIB_POSTFIX@
NO_DEFAULT_PATH)
find_library(IFC2X3_LIBRARY_DEBUG
NAMES ifc2x3@CMAKE_DEBUG_POSTFIX@ )
find_library(IFC2X3_LIBRARY
NAMES ifc2x3
PATHS ${ifc2x3_ROOT}/lib@LIB_POSTFIX@
NO_DEFAULT_PATH)
find_library(IFC2X3_LIBRARY
NAMES ifc2x3)
if(IFC2X3_LIBRARY_DEBUG)
if (IFC2X3_LIBRARY)
set(IFC2X3_LIBRARIES optimized ${IFC2X3_LIBRARY} debug ${IFC2X3_LIBRARY_DEBUG})
else()
set(IFC2X3_LIBRARIES ${IFC2X3_LIBRARY_DEBUG})
endif()
else()
set(IFC2X3_LIBRARIES ${IFC2X3_LIBRARY})
endif()
set(IFC2X3_LIBRARIES ${STEP_LIBRARIES} ${IFC2X3_LIBRARIES})
include(FindPackageHandleStandardArgs)
FIND_PACKAGE_HANDLE_STANDARD_ARGS(ifc2x3
REQUIRED_VARS IFC2X3_LIBRARY IFC2X3_INCLUDE_DIR
VERSION_VAR ifc2x3_sdk_VERSION_FULL)
endif()