Skip to content

Commit

Permalink
Updated quickstart example
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidAce committed Dec 9, 2022
1 parent 119524a commit 4292829
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,21 +7,20 @@ add_executable(MyProjectExecutable source/main.cpp)
# Enable C++17
target_compile_features(MyProjectExecutable PRIVATE cxx_std_17)


# Download cmake-conan integrator. You can also just copy the conan.cmake file
# Download cmake-conan integrator
if(NOT EXISTS "${CMAKE_BINARY_DIR}/conan/conan.cmake")
message(STATUS "Downloading conan.cmake from https://github.com/conan-io/cmake-conan")
file(DOWNLOAD "https://raw.github.com/conan-io/cmake-conan/release/0.17/conan.cmake"
file(DOWNLOAD "https://raw.github.com/conan-io/cmake-conan/0.18.1/conan.cmake"
"${CMAKE_BINARY_DIR}/conan/conan.cmake"
EXPECTED_HASH MD5=52a255a933397fdce3d0937f9c737e98
EXPECTED_HASH MD5=81d5eab13a49f43527e35a90bfac6960
TLS_VERIFY ON)
endif()

include(${CMAKE_BINARY_DIR}/conan/conan.cmake)
conan_cmake_autodetect(CONAN_AUTODETECT)
conan_cmake_install(
BUILD missing outdated cascade
GENERATOR cmake_find_package_multi
GENERATOR CMakeDeps
SETTINGS ${CONAN_AUTODETECT}
INSTALL_FOLDER ${CMAKE_BINARY_DIR}/conan # This is where conan will put config files for h5pp and its dependencies
PATH_OR_REFERENCE ${CMAKE_SOURCE_DIR}
Expand Down

0 comments on commit 4292829

Please sign in to comment.