我是 StackOverflow、Conan 和 CMake 的新手。
我正在尝试使用 CMake 构建一个依赖于 Qt 的 hello world 程序。我已经从公共存储库cmake-hello-world克隆了它并成功编译了它。
现在,我正在尝试conanize
这个项目,并且我已经安装了Qt/5.9@bincrafters/stable
jfrog-bintray组件,该组件随时可用bintray
并更改了 CMakelist.txt。
这是我的柯南简介:
cat ~/.conan/profiles/default
[settings]
os=Linux
os_build=Linux
arch=x86_64
arch_build=x86_64
compiler=gcc
compiler.version=5
compiler.libcxx=libstdc++
build_type=Release
[options]
[build_requires]
[env]
Run Code Online (Sandbox Code Playgroud)
CMakeList.txt:
cmake_minimum_required(VERSION 3.5)
project(helloworld)
# If conan is being used, configure CMake to use conan for dependencies.
include(${CMAKE_BINARY_DIR}/conanbuildinfo.cmake)
conan_basic_setup(TARGETS)
# Find includes in the build directories
set(CMAKE_INCLUDE_CURRENT_DIR ON)
# Turn on automatic invocation of the MOC, UIC & RCC
set(CMAKE_AUTOMOC ON) …
Run Code Online (Sandbox Code Playgroud)