AtomicDesktop.cmake 751 B

12345678910111213141516171819202122
  1. set(ATOMIC_DESKTOP TRUE)
  2. # Check whether the CEF submodule is available
  3. if (NOT DEFINED ATOMIC_WEBVIEW AND EXISTS ${ATOMIC_SOURCE_DIR}/Submodules/CEF)
  4. #Check if CEF got pulled by looking if the foldes is empty
  5. file(GLOB CEF_FILES ${ATOMIC_SOURCE_DIR}/Submodules/CEF/*)
  6. list(LENGTH CEF_FILES CEF_FILES_LEN)
  7. if (CEF_FILES_LEN EQUAL 0)
  8. message(STATUS "Initialising CEF submodule")
  9. find_package(Git REQUIRED)
  10. if (GIT_FOUND)
  11. execute_process(COMMAND git submodule update --init --remote)
  12. else ()
  13. message(STATUS "Could not find git in your Path. Please install git")
  14. endif (GIT_FOUND)
  15. endif ()
  16. set(ATOMIC_WEBVIEW TRUE)
  17. add_definitions(-DATOMIC_WEBVIEW)
  18. endif ()