mirror of
https://github.com/rmontanana/mdlp.git
synced 2025-08-16 07:55:58 +00:00
Fix conan build
This commit is contained in:
@@ -32,7 +32,7 @@ class FimdlpConan(ConanFile):
|
|||||||
# Sources are located in the same place as this recipe, copy them to the recipe
|
# Sources are located in the same place as this recipe, copy them to the recipe
|
||||||
exports_sources = "CMakeLists.txt", "src/*", "sample/*", "tests/*", "config/*", "fimdlpConfig.cmake.in"
|
exports_sources = "CMakeLists.txt", "src/*", "sample/*", "tests/*", "config/*", "fimdlpConfig.cmake.in"
|
||||||
|
|
||||||
def init(self):
|
def set_version(self):
|
||||||
content = load(self, "CMakeLists.txt")
|
content = load(self, "CMakeLists.txt")
|
||||||
version_pattern = re.compile(r'project\s*\([^\)]*VERSION\s+([0-9]+\.[0-9]+\.[0-9]+)', re.IGNORECASE | re.DOTALL)
|
version_pattern = re.compile(r'project\s*\([^\)]*VERSION\s+([0-9]+\.[0-9]+\.[0-9]+)', re.IGNORECASE | re.DOTALL)
|
||||||
match = version_pattern.search(content)
|
match = version_pattern.search(content)
|
||||||
|
@@ -2,7 +2,8 @@ cmake_minimum_required(VERSION 3.20)
|
|||||||
project(test_fimdlp)
|
project(test_fimdlp)
|
||||||
|
|
||||||
find_package(fimdlp REQUIRED)
|
find_package(fimdlp REQUIRED)
|
||||||
|
find_package(Torch REQUIRED)
|
||||||
|
|
||||||
add_executable(test_fimdlp src/test_fimdlp.cpp)
|
add_executable(test_fimdlp src/test_fimdlp.cpp)
|
||||||
target_link_libraries(test_fimdlp fimdlp::fimdlp)
|
target_link_libraries(test_fimdlp fimdlp::fimdlp torch::torch)
|
||||||
target_compile_features(test_fimdlp PRIVATE cxx_std_17)
|
target_compile_features(test_fimdlp PRIVATE cxx_std_17)
|
9
test_package/CMakeUserPresets.json
Normal file
9
test_package/CMakeUserPresets.json
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
{
|
||||||
|
"version": 4,
|
||||||
|
"vendor": {
|
||||||
|
"conan": {}
|
||||||
|
},
|
||||||
|
"include": [
|
||||||
|
"build/gcc-14-x86_64-gnu17-release/generators/CMakePresets.json"
|
||||||
|
]
|
||||||
|
}
|
Reference in New Issue
Block a user