mirror of
https://github.com/sqlitebrowser/sqlitebrowser.git
synced 2026-04-27 07:29:13 -05:00
Replace deprecated qt5_use_modules function (#1419)
* Replace deprecated qt5_use_modules function * Fix includes that fall under a larger module * Bump minimum Cmake version to use newer features and properly use libs * Replace deprecated qt5_use_modules function and bump minimum CMake version to 3.1.0 for 3rd party libraries
This commit is contained in:
committed by
Martin Kleusberg
parent
3cdc65a63f
commit
961141ec36
@@ -1,8 +1,9 @@
|
||||
cmake_minimum_required(VERSION 2.8.7)
|
||||
cmake_minimum_required(VERSION 3.1.0)
|
||||
|
||||
set(CMAKE_AUTOMOC ON)
|
||||
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
||||
find_package(Qt5Widgets REQUIRED)
|
||||
|
||||
find_package(Qt5 REQUIRED COMPONENTS Widgets PrintSupport)
|
||||
|
||||
set(QCUSTOMPLOT_SRC
|
||||
qcustomplot.cpp
|
||||
@@ -17,4 +18,4 @@ set(QCUSTOMPLOT_MOC_HDR
|
||||
|
||||
add_library(qcustomplot ${QCUSTOMPLOT_SRC} ${QCUSTOMPLOT_HDR} ${QCUSTOMPLOT_MOC})
|
||||
|
||||
qt5_use_modules(qcustomplot Widgets PrintSupport)
|
||||
target_link_libraries(qcustomplot Qt5::Widgets Qt5::PrintSupport)
|
||||
|
||||
Reference in New Issue
Block a user