小编Joh*_*der的帖子

使用 CMake 和 conan 包管理器正确设置 Vulkan、glfw 和 spdlog

我正在为 Vulkan API 开发渲染器。我在使用 CMake 和 conan 包管理器正确设置项目时遇到了很大的麻烦。让我们看一下我的 conanfile.py 以进行依赖项设置:

from conans import ConanFile, CMake

class InexorConan(ConanFile):

settings = (
    "os",
    "compiler",
    "build_type",
    "arch"
)

requires = (
    "benchmark/1.5.0",
    "glm/0.9.9.7",
    "gtest/1.10.0",
    "spdlog/1.5.0",
    "glfw/3.3.2@bincrafters/stable",
    "toml11/3.1.0",
    "imgui/1.75",
    "assimp/5.0.1",
    "enet/1.3.14 "
)

generators = "cmake"

default_options = {
}

def imports(self):
    # Copies all dll files from packages bin folder to my "bin" folder (win)
    self.copy("*.dll", dst="bin", src="bin")
    # Copies all dylib files from packages lib folder to my "lib" folder (macosx)
    self.copy("*.dylib*", …
Run Code Online (Sandbox Code Playgroud)

cmake vulkan conan

3
推荐指数
1
解决办法
787
查看次数

标签 统计

cmake ×1

conan ×1

vulkan ×1