Guest User

Untitled

a guest
Apr 6th, 2020
22
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. cmake_minimum_required(VERSION 3.13) # Проверка версии CMake.
  2. # Если версия установленой программы
  3. # старее указаной, произайдёт аварийный выход.
  4.  
  5. add_executable(main main.cpp) # Создает исполняемый файл с именем main
  6. # из исходника main.cpp
  7.  
  8. SET(requiredlibs)
  9.  
  10. FIND_PACKAGE(CURL)
  11. IF(CURL_FOUND)
  12. INCLUDE_DIRECTORIES(${CURL_INCLUDE_DIR})
  13. SET(requiredlibs ${requiredlibs} ${CURL_LIBRARIES} )
  14. ELSE(CURL_FOUND)
  15. MESSAGE(FATAL_ERROR "Could not find the CURL library and development files.")
  16. ENDIF(CURL_FOUND)
Advertisement
Add Comment
Please, Sign In to add comment