2018-01-25 17:33:52 +01:00
|
|
|
if (BUILD_GUI)
|
2022-02-07 17:35:25 +01:00
|
|
|
list(APPEND qt_components Core Gui Widgets PrintSupport LinguistTools Help)
|
|
|
|
if (WITH_QCHART)
|
|
|
|
list(APPEND qt_components Charts)
|
|
|
|
endif()
|
2021-12-17 21:49:32 +01:00
|
|
|
if (BUILD_TESTS)
|
2022-02-07 17:35:25 +01:00
|
|
|
list(APPEND qt_components Test)
|
2019-05-17 10:17:51 +02:00
|
|
|
endif()
|
2022-02-07 17:35:25 +01:00
|
|
|
find_package(Qt5 COMPONENTS ${qt_components} REQUIRED)
|
2018-01-25 17:33:52 +01:00
|
|
|
endif()
|
|
|
|
|
2015-02-13 19:00:14 +01:00
|
|
|
if (HAVE_RULES)
|
2021-03-30 13:37:26 +02:00
|
|
|
find_path(PCRE_INCLUDE pcre.h)
|
2020-05-27 05:15:46 +02:00
|
|
|
find_library(PCRE_LIBRARY pcre)
|
2021-03-30 13:37:26 +02:00
|
|
|
if (NOT PCRE_LIBRARY OR NOT PCRE_INCLUDE)
|
2015-02-13 19:00:14 +01:00
|
|
|
message(FATAL_ERROR "pcre dependency for RULES has not been found")
|
|
|
|
endif()
|
|
|
|
endif()
|
|
|
|
|
2020-05-27 05:15:46 +02:00
|
|
|
if (USE_Z3)
|
|
|
|
find_package(Z3 QUIET)
|
|
|
|
if (NOT Z3_FOUND)
|
|
|
|
find_library(Z3_LIBRARIES z3)
|
|
|
|
if (NOT Z3_LIBRARIES)
|
|
|
|
message(FATAL_ERROR "z3 dependency has not been found")
|
|
|
|
endif()
|
|
|
|
find_path(Z3_CXX_INCLUDE_DIRS z3++.h PATH_SUFFIXES "z3")
|
|
|
|
if (NOT Z3_CXX_INCLUDE_DIRS)
|
|
|
|
message(FATAL_ERROR "z3++.h has not been found")
|
|
|
|
endif()
|
|
|
|
endif()
|
|
|
|
endif()
|
|
|
|
|
2015-02-13 19:00:14 +01:00
|
|
|
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
2015-07-23 10:49:53 +02:00
|
|
|
|
2020-04-22 11:04:19 +02:00
|
|
|
if (NOT USE_MATCHCOMPILER_OPT MATCHES "Off")
|
2022-02-11 19:37:32 +01:00
|
|
|
find_package(PythonInterp 3 QUIET)
|
|
|
|
if (NOT PYTHONINTERP_FOUND)
|
|
|
|
set(PYTHONINTERP_FOUND "")
|
|
|
|
find_package(PythonInterp 2.7 QUIET)
|
|
|
|
if (NOT PYTHONINTERP_FOUND)
|
|
|
|
message(WARNING "No python interpreter found. Therefore, the match compiler is switched off.")
|
|
|
|
set(USE_MATCHCOMPILER_OPT "Off")
|
|
|
|
endif()
|
2015-07-23 10:49:53 +02:00
|
|
|
endif()
|
|
|
|
endif()
|
2020-11-22 08:57:07 +01:00
|
|
|
|
|
|
|
if (NOT USE_BUNDLED_TINYXML2)
|
|
|
|
find_package(tinyxml2 QUIET)
|
|
|
|
if (NOT tinyxml2_FOUND)
|
|
|
|
find_library(tinyxml2_LIBRARY tinyxml2)
|
|
|
|
if (NOT tinyxml2_LIBRARY)
|
|
|
|
message(FATAL_ERROR "tinyxml2 has not been found")
|
|
|
|
else()
|
|
|
|
set(tinyxml2_FOUND 1)
|
|
|
|
endif()
|
|
|
|
endif()
|
|
|
|
endif()
|
2022-02-23 09:04:35 +01:00
|
|
|
|
|
|
|
if (USE_THREADS)
|
|
|
|
find_package(Threads REQUIRED)
|
|
|
|
endif()
|