fix missing chart dependency

This commit is contained in:
Jan Grewe 2018-08-31 22:44:37 +02:00
parent f60e901ed5
commit 6d76db329c

View File

@ -30,14 +30,16 @@ find_package (Qt5Core REQUIRED)
find_package (Qt5Widgets REQUIRED) find_package (Qt5Widgets REQUIRED)
find_package (Qt5PrintSupport QUIET) find_package (Qt5PrintSupport QUIET)
find_package (Qt5Sql REQUIRED) find_package (Qt5Sql REQUIRED)
find_package (Qt5Charts REQUIRED)
include_directories (BEFORE include_directories (BEFORE
${Qt5Core_INCLUDE_DIRS} ${Qt5Core_INCLUDE_DIRS}
${Qt5Widgets_INCLUDE_DIRS} ${Qt5Widgets_INCLUDE_DIRS}
${Qt5PrintSupport_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_INCLUDE_CURRENT_DIR ON)
set (CMAKE_AUTOMOC ON) set (CMAKE_AUTOMOC ON)
@ -66,8 +68,8 @@ else ()
${NIXVIEW_SOURCES} ${META_FILES_TO_INCLUDE}) ${NIXVIEW_SOURCES} ${META_FILES_TO_INCLUDE})
endif () endif ()
target_link_libraries (nixview Qt5::Core Qt5::Widgets Qt5::PrintSupport Qt5::Sql target_link_libraries (nixview Qt5::Core Qt5::Widgets Qt5::PrintSupport Qt5::Sql Qt5::Charts
${NIX_LIBRARIES} ${Boost_LIBRARIES}) ${NIX_LIBRARIES})
install (TARGETS nixview BUNDLE DESTINATION . RUNTIME DESTINATION install (TARGETS nixview BUNDLE DESTINATION . RUNTIME DESTINATION
"${CMAKE_INSTALL_PREFIX}/bin") "${CMAKE_INSTALL_PREFIX}/bin")