qt as conan dependency

This commit is contained in:
Lukas Heiligenbrunner 2020-10-13 01:01:45 +02:00
parent 4a040d6a85
commit 36a945eb1d
3 changed files with 7 additions and 7 deletions

View File

@ -10,7 +10,7 @@ cmake:
script:
- mkdir build
- cd build
- conan install ..
- conan install .. --build=missing
- cmake -S . -B build -D WinBuild=OFF -D GUI=OFF
artifacts:
paths:

View File

@ -97,14 +97,12 @@ message(STATUS "Config of Libraries")
include(${CMAKE_BINARY_DIR}/conanbuildinfo.cmake)
conan_basic_setup(TARGETS)
if (${GUI})
set(CMAKE_AUTOMOC ON)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
find_package(Qt5Widgets REQUIRED)
find_package(Qt5PrintSupport REQUIRED)
find_package(Qt5Sql REQUIRED)
# Find the QtWidgets library
find_package(Qt5 REQUIRED COMPONENTS Widgets)
endif ()
include_directories(inc)
@ -182,7 +180,7 @@ if (${GUI})
endif ()
# LINK generated LIBS #
target_link_libraries(${Application_Name}-gui -lpthread libdynuiprefresher api CONAN_PKG::libcurl CONAN_PKG::LibConfig ${QT5_LIBRARIES})
target_link_libraries(${Application_Name}-gui -lpthread libdynuiprefresher api CONAN_PKG::libcurl CONAN_PKG::LibConfig CONAN_PKG::libQt5Widgets})
endif ()
# setting install targets

View File

@ -1,5 +1,7 @@
[requires]
libcurl/7.72.0@prebuiltconanbinaries/stable
libcurl/7.72.0
qt/5.15.1@bincrafters/stable
openssl/1.1.1h
LibConfig/1.7.2@prebuiltconanbinaries/stable
[generators]