cppcheck/cmake/findDependencies.cmake
Frank Zingsheim baced8c9d8 CMake add QtXML for GUI libraryeditor
(see also 4946f772ef535b9b470e8754f4d828b70c9c9bc5)
2015-08-31 10:18:24 +02:00

20 lines
551 B
CMake

find_package(Qt4 4.6.1 COMPONENTS QtCore QtGui QtXML)
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)
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()