Conan 1.16 Documentationfrom previous page) endif() include(${CMAKE_BINARY_DIR}/conan.cmake) conan_cmake_run(REQUIRES Catch2/2.6.0@catchorg/stable BASIC_SETUP) add_executable(main main.cpp) target_link_libraries(main ${CONAN_LIBS}) ${CONAN_LIBS}) If you want to use targets, you could do: include(conan.cmake) conan_cmake_run(REQUIRES Catch2/2.6.0@catchorg/stable BASIC_SETUP CMAKE_TARGETS) add_executable(main main.cpp) target_link_libraries(main0 码力 | 545 页 | 4.34 MB | 1 年前3
Conan 1.12 Documentationfrom previous page) endif() include(${CMAKE_BINARY_DIR}/conan.cmake) conan_cmake_run(REQUIRES Catch2/2.6.0@catchorg/stable BASIC_SETUP) add_executable(main main.cpp) target_link_libraries(main ${CONAN_LIBS}) ${CONAN_LIBS}) If you want to use targets, you could do: include(conan.cmake) conan_cmake_run(REQUIRES Catch2/2.6.0@catchorg/stable BASIC_SETUP CMAKE_TARGETS) add_executable(main main.cpp) target_link_libraries(main0 码力 | 505 页 | 4.10 MB | 1 年前3
Conan 1.13 Documentationfrom previous page) endif() include(${CMAKE_BINARY_DIR}/conan.cmake) conan_cmake_run(REQUIRES Catch2/2.6.0@catchorg/stable BASIC_SETUP) add_executable(main main.cpp) target_link_libraries(main ${CONAN_LIBS}) ${CONAN_LIBS}) If you want to use targets, you could do: include(conan.cmake) conan_cmake_run(REQUIRES Catch2/2.6.0@catchorg/stable BASIC_SETUP CMAKE_TARGETS) add_executable(main main.cpp) target_link_libraries(main0 码力 | 518 页 | 4.14 MB | 1 年前3
Conan 1.14 Documentationfrom previous page) endif() include(${CMAKE_BINARY_DIR}/conan.cmake) conan_cmake_run(REQUIRES Catch2/2.6.0@catchorg/stable BASIC_SETUP) add_executable(main main.cpp) target_link_libraries(main ${CONAN_LIBS}) ${CONAN_LIBS}) If you want to use targets, you could do: include(conan.cmake) conan_cmake_run(REQUIRES Catch2/2.6.0@catchorg/stable BASIC_SETUP CMAKE_TARGETS) add_executable(main main.cpp) target_link_libraries(main0 码力 | 528 页 | 4.17 MB | 1 年前3
Conan 1.15 Documentationfrom previous page) endif() include(${CMAKE_BINARY_DIR}/conan.cmake) conan_cmake_run(REQUIRES Catch2/2.6.0@catchorg/stable BASIC_SETUP) add_executable(main main.cpp) target_link_libraries(main ${CONAN_LIBS}) ${CONAN_LIBS}) If you want to use targets, you could do: include(conan.cmake) conan_cmake_run(REQUIRES Catch2/2.6.0@catchorg/stable BASIC_SETUP CMAKE_TARGETS) add_executable(main main.cpp) target_link_libraries(main0 码力 | 540 页 | 4.22 MB | 1 年前3
Conan 1.17 Documentationfrom previous page) endif() include(${CMAKE_BINARY_DIR}/conan.cmake) conan_cmake_run(REQUIRES Catch2/2.6.0@catchorg/stable BASIC_SETUP) add_executable(main main.cpp) target_link_libraries(main ${CONAN_LIBS}) ${CONAN_LIBS}) If you want to use targets, you could do: include(conan.cmake) conan_cmake_run(REQUIRES Catch2/2.6.0@catchorg/stable BASIC_SETUP CMAKE_TARGETS) add_executable(main main.cpp) target_link_libraries(main0 码力 | 567 页 | 4.53 MB | 1 年前3
Conan 1.18 Documentationfrom previous page) endif() include(${CMAKE_BINARY_DIR}/conan.cmake) conan_cmake_run(REQUIRES Catch2/2.6.0@catchorg/stable BASIC_SETUP) add_executable(main main.cpp) target_link_libraries(main ${CONAN_LIBS}) ${CONAN_LIBS}) If you want to use targets, you could do: include(conan.cmake) conan_cmake_run(REQUIRES Catch2/2.6.0@catchorg/stable BASIC_SETUP CMAKE_TARGETS) add_executable(main main.cpp) target_link_libraries(main0 码力 | 584 页 | 4.80 MB | 1 年前3
Conan 1.19 Documentationfrom previous page) endif() include(${CMAKE_BINARY_DIR}/conan.cmake) conan_cmake_run(REQUIRES Catch2/2.6.0@catchorg/stable BASIC_SETUP) add_executable(main main.cpp) target_link_libraries(main ${CONAN_LIBS}) ${CONAN_LIBS}) If you want to use targets, you could do: include(conan.cmake) conan_cmake_run(REQUIRES Catch2/2.6.0@catchorg/stable BASIC_SETUP CMAKE_TARGETS) add_executable(main main.cpp) target_link_libraries(main0 码力 | 609 页 | 4.88 MB | 1 年前3
Conan 1.20 Documentationfrom previous page) endif() include(${CMAKE_BINARY_DIR}/conan.cmake) conan_cmake_run(REQUIRES Catch2/2.6.0@catchorg/stable BASIC_SETUP) add_executable(main main.cpp) target_link_libraries(main ${CONAN_LIBS}) ${CONAN_LIBS}) If you want to use targets, you could do: include(conan.cmake) conan_cmake_run(REQUIRES Catch2/2.6.0@catchorg/stable BASIC_SETUP CMAKE_TARGETS) add_executable(main main.cpp) target_link_libraries(main0 码力 | 611 页 | 4.89 MB | 1 年前3
Conan 2.0 Documentationto the recipe as a test_requires(). It’s a type of requirement intended for testing libraries like Catch2 or gtest. • We use the tools.build:skip_test configuration (False by default), to tell CMake whether dependency will be visible downstream. test This requirement is a test library or framework, like Catch2 or gtest. It is mostly a library that needs to be included and linked, but that will not be propagated0 码力 | 652 页 | 4.00 MB | 1 年前3
共 65 条
- 1
- 2
- 3
- 4
- 5
- 6
- 7













