Skip to content

Commit

Permalink
Use cmake_layout
Browse files Browse the repository at this point in the history
  • Loading branch information
craflin committed Oct 12, 2024
1 parent 4871607 commit 2cd1441
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/.vscode/
/build/

CMakeUserPresets.json
5 changes: 4 additions & 1 deletion conanfile.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from conan import ConanFile
from conan.tools.cmake import CMake, CMakeToolchain
from conan.tools.cmake import CMake, CMakeToolchain, cmake_layout
from conan.tools.env import VirtualBuildEnv
from conan.tools.files import load
import re, os
@@ -36,6 +36,9 @@ def package(self):
cmake = CMake(self)
cmake.install()

def layout(self):
cmake_layout(self)

def package_info(self):
self.cpp_info.set_property("cmake_find_mode", "none")
self.cpp_info.builddirs.append(os.path.join("lib", "cmake", "mingtest"))

0 comments on commit 2cd1441

Please sign in to comment.