Conan 1.3 Documentationconanbuildinfo.cmake example-hello conanfile.txt CMakeLists.txt # If using cmake, but can be Makefile, sln... main.cpp Now you are ready to build: $ cmake ../example-hello -G "Visual Studio 14 Win64" # or other generator cmake files example-hello conanfile.txt CMakeLists.txt # If using cmake, but can be Makefile, sln... main.cpp Now you can switch between your build configurations in exactly the same way you do for CMake or include(${CMAKE_BINARY_DIR}/conanbuildinfo_multi.cmake) conan_basic_setup() add_executable(say_hello main.cpp) foreach(_LIB ${CONAN_LIBS_RELEASE}) target_link_libraries(say_hello optimized ${_LIB}) endforeach()0 码力 | 397 页 | 2.77 MB | 1 年前3
Conan 1.4 Documentationconanbuildinfo.cmake example-hello conanfile.txt CMakeLists.txt # If using cmake, but can be Makefile, sln... main.cpp Now you are ready to build: $ cmake ../example-hello -G "Visual Studio 14 Win64" # or other generator cmake files example-hello conanfile.txt CMakeLists.txt # If using cmake, but can be Makefile, sln... main.cpp Now you can switch between your build configurations in exactly the same way you do for CMake or include(${CMAKE_BINARY_DIR}/conanbuildinfo_multi.cmake) conan_basic_setup() add_executable(say_hello main.cpp) foreach(_LIB ${CONAN_LIBS_RELEASE}) target_link_libraries(say_hello optimized ${_LIB}) endforeach()0 码力 | 421 页 | 2.84 MB | 1 年前3
Conan 1.5 Documentationconanbuildinfo.cmake example-hello conanfile.txt CMakeLists.txt # If using cmake, but can be Makefile, sln... main.cpp Now you are ready to build: $ cmake ../example-hello -G "Visual Studio 14 Win64" # or other generator cmake files example-hello conanfile.txt CMakeLists.txt # If using cmake, but can be Makefile, sln... main.cpp Now you can switch between your build configurations in exactly the same way you do for CMake or include(${CMAKE_BINARY_DIR}/conanbuildinfo_multi.cmake) conan_basic_setup() add_executable(say_hello main.cpp) foreach(_LIB ${CONAN_LIBS_RELEASE}) target_link_libraries(say_hello optimized ${_LIB}) endforeach()0 码力 | 422 页 | 2.85 MB | 1 年前3
Conan 1.6 Documentationconanbuildinfo.cmake example-hello conanfile.txt CMakeLists.txt # If using cmake, but can be Makefile, sln... main.cpp Now you are ready to build: $ cmake ../example-hello -G "Visual Studio 14 Win64" # or other generator cmake files example-hello conanfile.txt CMakeLists.txt # If using cmake, but can be Makefile, sln... main.cpp Now you can switch between your build configurations in exactly the same way you do for CMake or include(${CMAKE_BINARY_DIR}/conanbuildinfo_multi.cmake) conan_basic_setup() add_executable(say_hello main.cpp) foreach(_LIB ${CONAN_LIBS_RELEASE}) target_link_libraries(say_hello optimized ${_LIB}) endforeach()0 码力 | 428 页 | 2.87 MB | 1 年前3
Conan 1.7 Documentationconanbuildinfo.cmake example-hello conanfile.txt CMakeLists.txt # If using cmake, but can be Makefile, sln... main.cpp Now you are ready to build: $ cmake ../example-hello -G "Visual Studio 14 Win64" # or other generator cmake files example-hello conanfile.txt CMakeLists.txt # If using cmake, but can be Makefile, sln... main.cpp Now you can switch between your build configurations in exactly the same way you do for CMake or include(${CMAKE_BINARY_DIR}/conanbuildinfo_multi.cmake) conan_basic_setup() add_executable(say_hello main.cpp) foreach(_LIB ${CONAN_LIBS_RELEASE}) target_link_libraries(say_hello optimized ${_LIB}) endforeach()0 码力 | 433 页 | 2.95 MB | 1 年前3
Conan 1.16 Documentationinclude(${CMAKE_BINARY_DIR}/conanbuildinfo_multi.cmake) conan_basic_setup() add_executable(say_hello main.cpp) foreach(_LIB ${CONAN_LIBS_RELEASE}) target_link_libraries(say_hello optimized ${_LIB}) endforeach() include(${CMAKE_BINARY_DIR}/conanbuildinfo_multi.cmake) conan_basic_setup(TARGETS) add_executable(say_hello main.cpp) target_link_libraries(say_hello CONAN_PKG::Hello1) There’s also a convenient macro for linking include(${CMAKE_BINARY_DIR}/conanbuildinfo_multi.cmake) conan_basic_setup() add_executable(say_hello main.cpp) conan_target_link_libraries(say_hello) With this approach, the end user can open the generated0 码力 | 545 页 | 4.34 MB | 1 年前3
Conan 1.15 Documentationinclude(${CMAKE_BINARY_DIR}/conanbuildinfo_multi.cmake) conan_basic_setup() add_executable(say_hello main.cpp) foreach(_LIB ${CONAN_LIBS_RELEASE}) target_link_libraries(say_hello optimized ${_LIB}) (continues include(${CMAKE_BINARY_DIR}/conanbuildinfo_multi.cmake) conan_basic_setup(TARGETS) add_executable(say_hello main.cpp) target_link_libraries(say_hello CONAN_PKG::Hello1) There’s also a convenient macro for linking include(${CMAKE_BINARY_DIR}/conanbuildinfo_multi.cmake) conan_basic_setup() add_executable(say_hello main.cpp) conan_target_link_libraries(say_hello) With this approach, the end user can open the generated0 码力 | 540 页 | 4.22 MB | 1 年前3
Conan 1.10 Documentationinclude(${CMAKE_BINARY_DIR}/conanbuildinfo_multi.cmake) conan_basic_setup() add_executable(say_hello main.cpp) foreach(_LIB ${CONAN_LIBS_RELEASE}) target_link_libraries(say_hello optimized ${_LIB}) (continues include(${CMAKE_BINARY_DIR}/conanbuildinfo_multi.cmake) conan_basic_setup(TARGETS) add_executable(say_hello main.cpp) target_link_libraries(say_hello CONAN_PKG::Hello1) There’s also a convenient macro for linking include(${CMAKE_BINARY_DIR}/conanbuildinfo_multi.cmake) conan_basic_setup() add_executable(say_hello main.cpp) conan_target_link_libraries(say_hello) With this approach, the end user can open the generated0 码力 | 479 页 | 3.09 MB | 1 年前3
Conan 1.11 Documentationinclude(${CMAKE_BINARY_DIR}/conanbuildinfo_multi.cmake) conan_basic_setup() add_executable(say_hello main.cpp) foreach(_LIB ${CONAN_LIBS_RELEASE}) target_link_libraries(say_hello optimized ${_LIB}) (continues include(${CMAKE_BINARY_DIR}/conanbuildinfo_multi.cmake) conan_basic_setup(TARGETS) add_executable(say_hello main.cpp) target_link_libraries(say_hello CONAN_PKG::Hello1) There’s also a convenient macro for linking include(${CMAKE_BINARY_DIR}/conanbuildinfo_multi.cmake) conan_basic_setup() add_executable(say_hello main.cpp) conan_target_link_libraries(say_hello) With this approach, the end user can open the generated0 码力 | 490 页 | 4.05 MB | 1 年前3
Conan 1.28 Documentationrequires = "mylib-waf/1.0" build_requires = "WafGen/0.1", "waf/2.0.19" exports_sources = "wscript", "main.cpp" def build(self): waf = self.python_requires["waf-build-helper"].module.WafBuildEnvironment(self) /{{name}}/all/test_package/conanfile.py /{{name}}/all/test_package/CMakeLists.txt /{{name}}/all/test_package/main.cpp will be translated to: conan-center/mypackage/config.yml /mypackage/all/conanfile.py /mypackage/all/conandata /mypackage/all/test_package/conanfile.py /mypackage/all/test_package/CMakeLists.txt /mypackage/all/test_package/main.cpp And the contents of all the files will be rendered using Jinja2 syntax too, substituting values0 码力 | 699 页 | 5.39 MB | 1 年前3
共 74 条
- 1
- 2
- 3
- 4
- 5
- 6
- 8













