forked from IfcOpenShell/IfcOpenShell
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFindIfcParse.cmake
More file actions
39 lines (32 loc) · 1.43 KB
/
FindIfcParse.cmake
File metadata and controls
39 lines (32 loc) · 1.43 KB
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
# Exported target: IfcOpenShell::Parse
include(FindPackageHandleStandardArgs)
get_filename_component(_IMPORT_PREFIX "${CMAKE_CURRENT_LIST_FILE}" PATH)
if(${CMAKE_HOST_UNIX})
find_path(IfcParse_INCLUDE_DIR
NAMES ifcparse/IfcParse.h
PATHS ${_IMPORT_PREFIX}/include
NO_DEFAULT_PATH
DOC "The directory where IfcParse.h resides")
find_library(IfcParse_LIBRARY
NAMES IfcParse
PATHS ${_IMPORT_PREFIX}/lib
NO_DEFAULT_PATH
DOC "The IfcParse library")
endif()
mark_as_advanced(IfcParse_INCLUDE_DIR IfcParse_LLIBRARY)
find_package_handle_standard_args(IfcParse
DEFAULT_MSG
IfcParse_INCLUDE_DIR
IfcParse_LIBRARY)
if(IfcParse_FOUND AND NOT TARGET IfcOpenShell::Parse)
add_library(IfcOpenShell::Parse UNKNOWN IMPORTED)
set_target_properties(IfcOpenShell::Parse
PROPERTIES IMPORTED_LINK_INTERFACE_LANGUAGES
"CXX"
IMPORTED_LOCATION
"${IfcParse_LIBRARY}"
INTERFACE_INCLUDE_DIRECTORIES
"${IfcParse_INCLUDE_DIR}"
IMPORTED_LINK_INTERFACE_LIBRARIES
"CONAN_PKG::icu;CONAN_PKG::boost")
endif()