Conan 1.16 DocumentationChapter 7. Developing packages conan Documentation, Release 1.16.1 (continued from previous page) add_library(hello hello.cpp) conan_target_link_libraries(hello) The last conan_target_link_libraries(hello) tools.replace_in_file(os.path.join(self.source_folder, ˓→"CMakeLists.txt"), "add_library(mylibrary ${sources})", "add_library({} ${{sources}})". ˓→format(self.name)) def build(self): cmake = CMake(self) tools.replace_in_file(os.path.join(self.source_folder, "CMakeLists. ˓→txt"), "add_library(mylibrary ${sources})", "add_library({} ${{sources}})".format(self. ˓→name)) As you can see, in the inherited source()0 码力 | 545 页 | 4.34 MB | 1 年前3
Conan 1.15 Documentationinclude(${CMAKE_CURRENT_BINARY_DIR}/conanbuildinfo.cmake) endif() conan_basic_setup(NO_OUTPUT_DIRS) add_library(hello hello.cpp) conan_target_link_libraries(hello) The last conan_target_link_libraries(hello) tools.replace_in_file(os.path.join(self.source_folder, ˓→"CMakeLists.txt"), "add_library(mylibrary ${sources})", "add_library({} ${{sources}})". ˓→format(self.name)) def build(self): cmake = CMake(self) tools.replace_in_file(os.path.join(self.source_folder, "CMakeLists. ˓→txt"), "add_library(mylibrary ${sources})", "add_library({} ${{sources}})".format(self. ˓→name)) As you can see, in the inherited source()0 码力 | 540 页 | 4.22 MB | 1 年前3
Conan 1.17 DocumentationChapter 7. Developing packages conan Documentation, Release 1.17.2 (continued from previous page) add_library(hello hello.cpp) conan_target_link_libraries(hello) The last conan_target_link_libraries(hello) tools.replace_in_file(os.path.join(self.source_folder, ˓→"CMakeLists.txt"), "add_library(mylibrary ${sources})", "add_library({} ${{sources}})". ˓→format(self.name)) def build(self): cmake = CMake(self) tools.replace_in_file(os.path.join(self.source_folder, "CMakeLists. ˓→txt"), "add_library(mylibrary ${sources})", "add_library({} ${{sources}})".format(self. ˓→name)) As you can see, in the inherited source()0 码力 | 567 页 | 4.53 MB | 1 年前3
Conan 1.18 DocumentationChapter 7. Developing packages conan Documentation, Release 1.18.5 (continued from previous page) add_library(hello hello.cpp) conan_target_link_libraries(hello) The last conan_target_link_libraries(hello) tools.replace_in_file(os.path.join(self.source_folder, ˓→"CMakeLists.txt"), "add_library(mylibrary ${sources})", "add_library({} ${{sources}})". ˓→format(self.name)) def build(self): cmake = CMake(self) tools.replace_in_file(os.path.join(self.source_folder, "CMakeLists. ˓→txt"), "add_library(mylibrary ${sources})", "add_library({} ${{sources}})".format(self. ˓→name)) As you can see, in the inherited source()0 码力 | 584 页 | 4.80 MB | 1 年前3
Conan 1.19 DocumentationChapter 7. Developing packages Conan Documentation, Release 1.19.3 (continued from previous page) add_library(hello hello.cpp) conan_target_link_libraries(hello) The last conan_target_link_libraries(hello) tools.replace_in_file(os.path.join(self.source_folder, ˓→"CMakeLists.txt"), "add_library(mylibrary ${sources})", "add_library({} ${{sources}})". ˓→format(self.name)) def build(self): cmake = CMake(self) tools.replace_in_file(os.path.join(self.source_folder, "CMakeLists. ˓→txt"), "add_library(mylibrary ${sources})", "add_library({} ${{sources}})".format(self. ˓→name)) As you can see, in the inherited source()0 码力 | 609 页 | 4.88 MB | 1 年前3
Conan 1.20 DocumentationChapter 7. Developing packages Conan Documentation, Release 1.20.5 (continued from previous page) add_library(hello hello.cpp) conan_target_link_libraries(hello) The last conan_target_link_libraries(hello) tools.replace_in_file(os.path.join(self.source_folder, ˓→"CMakeLists.txt"), "add_library(mylibrary ${sources})", "add_library({} ${{sources}})". ˓→format(self.name)) def build(self): cmake = CMake(self) tools.replace_in_file(os.path.join(self.source_folder, "CMakeLists. ˓→txt"), "add_library(mylibrary ${sources})", "add_library({} ${{sources}})".format(self. ˓→name)) As you can see, in the inherited source()0 码力 | 611 页 | 4.89 MB | 1 年前3
Conan 1.21 DocumentationChapter 7. Developing packages Conan Documentation, Release 1.21.3 (continued from previous page) add_library(hello hello.cpp) conan_target_link_libraries(hello) The last conan_target_link_libraries(hello) (legacy) 157 Conan Documentation, Release 1.21.3 (continued from previous page) "add_library(mylibrary ${sources})", "add_library({} ${{sources}})". ˓→format(self.name)) def build(self): cmake = CMake(self) tools.replace_in_file(os.path.join(self.source_folder, "CMakeLists. ˓→txt"), "add_library(mylibrary ${sources})", "add_library({} ${{sources}})".format(self. ˓→name)) 160 Chapter 12. Extending Conan Conan0 码力 | 621 页 | 4.92 MB | 1 年前3
Conan 1.22 DocumentationChapter 7. Developing packages Conan Documentation, Release 1.22.3 (continued from previous page) add_library(hello hello.cpp) conan_target_link_libraries(hello) The last conan_target_link_libraries(hello) (legacy) 157 Conan Documentation, Release 1.22.3 (continued from previous page) "add_library(mylibrary ${sources})", "add_library({} ${{sources}})". ˓→format(self.name)) def build(self): cmake = CMake(self) tools.replace_in_file(os.path.join(self.source_folder, "CMakeLists. ˓→txt"), "add_library(mylibrary ${sources})", "add_library({} ${{sources}})".format(self. ˓→name)) 160 Chapter 12. Extending Conan Conan0 码力 | 629 页 | 4.98 MB | 1 年前3
Conan 1.23 DocumentationChapter 7. Developing packages Conan Documentation, Release 1.23.0 (continued from previous page) add_library(hello hello.cpp) conan_target_link_libraries(hello) The last conan_target_link_libraries(hello) (legacy) 157 Conan Documentation, Release 1.23.0 (continued from previous page) "add_library(mylibrary ${sources})", "add_library({} ${{sources}})". ˓→format(self.name)) def build(self): cmake = CMake(self) tools.replace_in_file(os.path.join(self.source_folder, "CMakeLists. ˓→txt"), "add_library(mylibrary ${sources})", "add_library({} ${{sources}})".format(self. ˓→name)) 160 Chapter 12. Extending Conan Conan0 码力 | 637 页 | 5.04 MB | 1 年前3
Conan 1.24 DocumentationDocumentation, Release 1.24.1 (continued from previous page) conan_basic_setup(NO_OUTPUT_DIRS) add_library(hello hello.cpp) conan_target_link_libraries(hello) The last conan_target_link_libraries(hello) tools.replace_in_file(os.path.join(self.source_folder, ˓→"CMakeLists.txt"), "add_library(mylibrary ${sources})", "add_library({} ${{sources}})". ˓→format(self.name)) def build(self): cmake = CMake(self) tools.replace_in_file(os.path.join(self.source_folder, "CMakeLists. ˓→txt"), "add_library(mylibrary ${sources})", "add_library({} ${{sources}})".format(self. ˓→name)) As you can see, in the inherited source()0 码力 | 647 页 | 5.31 MB | 1 年前3
共 74 条
- 1
- 2
- 3
- 4
- 5
- 6
- 8













