From 6d76db329c38ae8670bbfeefd6ee51b4b8ed6cba Mon Sep 17 00:00:00 2001 From: Jan Grewe Date: Fri, 31 Aug 2018 22:44:37 +0200 Subject: [PATCH] fix missing chart dependency --- CMakeLists.txt | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 483247c..0596dae 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -30,14 +30,16 @@ find_package (Qt5Core REQUIRED) find_package (Qt5Widgets REQUIRED) find_package (Qt5PrintSupport QUIET) find_package (Qt5Sql REQUIRED) +find_package (Qt5Charts REQUIRED) include_directories (BEFORE ${Qt5Core_INCLUDE_DIRS} ${Qt5Widgets_INCLUDE_DIRS} ${Qt5PrintSupport_INCLUDE_DIRS} - ${Qt5Sql_INCLUDE_DIRS}) + ${Qt5Sql_INCLUDE_DIRS} + ${Qt5Charts_INCLUDE_DIRS}) -add_definitions (${Qt5Core_DEFINITIONS}) +add_definitions (${Qt5Core_DEFINITIONS} ${Qt5Charts_Definitions}) set (CMAKE_INCLUDE_CURRENT_DIR ON) set (CMAKE_AUTOMOC ON) @@ -66,8 +68,8 @@ else () ${NIXVIEW_SOURCES} ${META_FILES_TO_INCLUDE}) endif () -target_link_libraries (nixview Qt5::Core Qt5::Widgets Qt5::PrintSupport Qt5::Sql - ${NIX_LIBRARIES} ${Boost_LIBRARIES}) +target_link_libraries (nixview Qt5::Core Qt5::Widgets Qt5::PrintSupport Qt5::Sql Qt5::Charts + ${NIX_LIBRARIES}) install (TARGETS nixview BUNDLE DESTINATION . RUNTIME DESTINATION "${CMAKE_INSTALL_PREFIX}/bin")