1cmake_minimum_required(VERSION 3.4.3) 2 3project(Debugserver LANGUAGES C CXX ASM-ATT) 4 5if (CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR) 6 set(CMAKE_MODULE_PATH 7 ${CMAKE_MODULE_PATH} 8 "${CMAKE_SOURCE_DIR}/../../cmake" 9 "${CMAKE_SOURCE_DIR}/../../cmake/modules" 10 ) 11 12 include(LLDBStandalone) 13 include(debugserverConfig) 14 include(AddLLDB) 15 16 set(LLDB_SOURCE_DIR "${CMAKE_SOURCE_DIR}/../../") 17 include_directories(${LLDB_SOURCE_DIR}/include) 18endif() 19 20# debugserver contains ObjC++ code, so let's disable Clang modules 21# in this subdirectory to avoid building ObjC++ modules (which often 22# doesn't properly work). 23remove_module_flags() 24 25add_subdirectory(source) 26