# CMakeList.txt : CMake project for CMakeProject1, include source and define # project specific logic here. # cmake_minimum_required (VERSION 3.8) # Download automatically, you can also just copy the conan.cmake file if(NOT EXISTS "${CMAKE_BINARY_DIR}/conan.cmake") message(STATUS "Downloading conan.cmake from https://github.com/conan-io/cmake-conan") file(DOWNLOAD "https://raw.githubusercontent.com/conan-io/cmake-conan/v0.16.1/conan.cmake" "${CMAKE_BINARY_DIR}/conan.cmake" EXPECTED_HASH SHA256=396e16d0f5eabdc6a14afddbcfff62a54a7ee75c6da23f32f7a31bc85db23484 TLS_VERIFY ON) endif() set(CMAKE_CXX_STANDARD 17) set(CMAKE_CXX_STANDARD_REQUIRED ON) set(CMAKE_CXX_EXTENSIONS OFF) include(${CMAKE_BINARY_DIR}/conan.cmake) conan_cmake_run(CONANFILE conanfile.txt BUILD missing BASIC_SETUP) if(UNIX) set_source_files_properties(OSUtils_win.cpp PROPERTIES HEADER_FILE_ONLY TRUE) set_source_files_properties(SystemParamsProvider_win.cpp PROPERTIES HEADER_FILE_ONLY TRUE) else(WIN32) set_source_files_properties(SystemParamsProvider_linux.cpp PROPERTIES HEADER_FILE_ONLY TRUE) endif() # Add source to this project's executable. add_executable (CMakeProject1 "CCServer.cpp" "CCServer.h" "CryptoUtils.cpp" "CryptoUtils.h" "CMakeProject1.cpp" "CMakeProject1.h" "HashUtils.cpp" "HashUtils.h" "JSONSerialization.cpp" "JSONSerialization.h" "LicenseClient.cpp" "LicenseClient.h" "SystemParams.cpp" "SystemParams.h" "SystemParamsProvider.h" "SystemParamsProvider_win.cpp" "SystemParamsProvider_win.h" "SystemParamsProvider_linux.cpp" "SystemParamsProvider_win.cpp" "OSUtils.h" "OSUtils_win.cpp") target_link_libraries(CMakeProject1 ${CONAN_LIBS}) # TODO: Add tests and install targets if needed.