2018-08-08 14:46:17 +00:00
|
|
|
if (USE_Z3)
|
2018-11-08 11:12:47 +00:00
|
|
|
find_path(Z3_INCLUDE_DIR NAMES z3++.h PATH_SUFFIXES z3)
|
2018-12-17 12:42:48 +00:00
|
|
|
find_library(Z3_LIBRARY NAMES z3)
|
2018-08-08 14:46:17 +00:00
|
|
|
include(FindPackageHandleStandardArgs)
|
|
|
|
find_package_handle_standard_args(Z3 DEFAULT_MSG Z3_LIBRARY Z3_INCLUDE_DIR)
|
2018-12-17 12:42:48 +00:00
|
|
|
|
|
|
|
if (NOT TARGET Z3::Z3)
|
|
|
|
add_library(Z3::Z3 UNKNOWN IMPORTED)
|
|
|
|
set_property(TARGET Z3::Z3 PROPERTY IMPORTED_LOCATION ${Z3_LIBRARY})
|
|
|
|
set_property(TARGET Z3::Z3 PROPERTY INTERFACE_INCLUDE_DIRECTORIES ${Z3_INCLUDE_DIR})
|
|
|
|
endif()
|
2018-08-08 14:46:17 +00:00
|
|
|
else()
|
|
|
|
set(Z3_FOUND FALSE)
|
|
|
|
endif()
|