eba5c41491329ca8ad2a07f06415775745b2eed9
[lldb.git] / lldb / tools / debugserver / CMakeLists.txt
1 cmake_minimum_required(VERSION 3.13.4)
2
3 project(Debugserver LANGUAGES C CXX ASM-ATT)
4
5 if (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)
18 endif()
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).
23 remove_module_flags()
24
25 add_subdirectory(source)