1 cmake_minimum_required(VERSION 3.20.0)
3 project(Debugserver LANGUAGES C CXX ASM-ATT)
5 # Must go below project(..)
6 include(GNUInstallDirs)
8 if (CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR)
9 set(LLDB_BUILT_STANDALONE TRUE)
13 "${CMAKE_SOURCE_DIR}/../../cmake"
14 "${CMAKE_SOURCE_DIR}/../../cmake/modules"
17 include(LLDBStandalone)
18 include(debugserverConfig)
21 set(LLDB_SOURCE_DIR "${CMAKE_SOURCE_DIR}/../../")
22 include_directories(${LLDB_SOURCE_DIR}/include)
25 # debugserver contains ObjC++ code, so let's disable Clang modules
26 # in this subdirectory to avoid building ObjC++ modules (which often
27 # doesn't properly work).
30 add_subdirectory(source)