Mercurial > code
view cmake/FindKDChart.cmake @ 638:25cb122ed7ef
is_boolean: mark lambda noexcept
author | David Demelier <markand@malikania.fr> |
---|---|
date | Fri, 27 Apr 2018 09:06:02 +0200 |
parents | 01e01777ff50 |
children |
line wrap: on
line source
# FindKDChart # ----------- # # Find KDChart library, this modules defines: # # KDChart_FOUND Set to TRUE if KDChart was found. # KDChart_LIBRARIES Path to KDChart libraries. # KDChart_INCLUDE_DIRS Path to the KDChart include directory. find_package(Qt5Widgets QUIET) find_package(Qt5PrintSupport QUIET) find_library(KDChart_LIBRARY NAMES KDChart2 KDChartd2 kdchart2 kdchartd2) find_path( KDChart_Chart_INCLUDE_DIR NAMES KDChart KDChartGlobal PATH_SUFFIXES KDChart ) find_path( KDChart_Gantt_INCLUDE_DIR NAMES KDGantt KDGanttGlobal PATH_SUFFIXES KDGantt ) include(FindPackageHandleStandardArgs) find_package_handle_standard_args( KDChart FOUND_VAR KDChart_FOUND REQUIRED_VARS KDChart_LIBRARY KDChart_Chart_INCLUDE_DIR KDChart_Gantt_INCLUDE_DIR Qt5Widgets_FOUND Qt5PrintSupport_FOUND ) set(KDChart_LIBRARIES ${KDChart_LIBRARY} Qt5::Widgets Qt5::PrintSupport) set(KDChart_INCLUDE_DIRS ${KDChart_Chart_INCLUDE_DIR} ${KDChart_Gantt_INCLUDE_DIR}) mark_as_advanced(KDChart_LIBRARIES KDChart_INCLUDE_DIR)