2018-01-25 17:33:52 +01:00
|
|
|
if (BUILD_GUI)
|
2018-06-02 18:31:33 +02:00
|
|
|
find_package(Qt5Core)
|
|
|
|
find_package(Qt5Gui)
|
|
|
|
find_package(Qt5Widgets)
|
|
|
|
find_package(Qt5PrintSupport)
|
2018-01-25 17:33:52 +01:00
|
|
|
find_package(Qt5LinguistTools)
|
|
|
|
endif()
|
|
|
|
|
2015-02-13 19:00:14 +01:00
|
|
|
if (HAVE_RULES)
|
|
|
|
find_library(PCRE pcre)
|
|
|
|
if (NOT PCRE)
|
|
|
|
message(FATAL_ERROR "pcre dependency for RULES has not been found")
|
|
|
|
endif()
|
|
|
|
endif()
|
|
|
|
|
|
|
|
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
|
|
|
set(CMAKE_AUTOMOC OFF)
|
2015-07-23 10:49:53 +02:00
|
|
|
|
|
|
|
if (NOT ${USE_MATCHCOMPILER_OPT} STREQUAL "Off")
|
|
|
|
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()
|