2018-01-25 17:33:52 +01:00
|
|
|
if (BUILD_GUI)
|
2019-05-17 10:17:51 +02:00
|
|
|
if (NOT WITH_QCHART)
|
|
|
|
find_package(Qt5 COMPONENTS Core Gui Widgets PrintSupport LinguistTools REQUIRED)
|
|
|
|
else()
|
|
|
|
find_package(Qt5 COMPONENTS Core Gui Widgets PrintSupport LinguistTools Charts REQUIRED)
|
|
|
|
endif()
|
2018-01-25 17:33:52 +01:00
|
|
|
endif()
|
|
|
|
|
2015-02-13 19:00:14 +01:00
|
|
|
if (HAVE_RULES)
|
2020-05-27 05:15:46 +02:00
|
|
|
find_library(PCRE_LIBRARY pcre)
|
|
|
|
if (NOT PCRE_LIBRARY)
|
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()
|
|
|
|
include_directories(cppcheck SYSTEM ${Z3_CXX_INCLUDE_DIRS})
|
|
|
|
endif()
|
|
|
|
|
2015-02-13 19:00:14 +01:00
|
|
|
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
|
|
|
set(CMAKE_AUTOMOC OFF)
|
2015-07-23 10:49:53 +02:00
|
|
|
|
2020-04-22 11:04:19 +02:00
|
|
|
if (NOT USE_MATCHCOMPILER_OPT MATCHES "Off")
|
2015-07-23 10:49:53 +02:00
|
|
|
find_package(PythonInterp)
|
|
|
|
if (NOT ${PYTHONINTERP_FOUND})
|
|
|
|
message(WARNING "No python interpreter found. Therefore, the match compiler is switched off.")
|
|
|
|
set(USE_MATCHCOMPILER_OPT "Off")
|
|
|
|
endif()
|
|
|
|
endif()
|