| 1 |
## lldb requires C++11 |
| 2 |
add_definitions(-std=c++11) |
| 3 |
set(PLUGIN_NAME "DebugAdapterClient") |
| 4 |
project(DebugAdapterClient) |
| 5 |
|
| 6 |
add_subdirectory("${CL_SRC_ROOT}/wxdap/dap" ${CMAKE_LIBRARY_OUTPUT_DIRECTORY}) |
| 7 |
|
| 8 |
# wxWidgets include (this will do all the magic to configure everything) |
| 9 |
include("${wxWidgets_USE_FILE}") |
| 10 |
|
| 11 |
# Include paths |
| 12 |
include_directories("${CL_SRC_ROOT}/Plugin" |
| 13 |
"${CL_SRC_ROOT}/sdk/wxsqlite3/include" |
| 14 |
"${CL_SRC_ROOT}/CodeLite" |
| 15 |
"${CL_SRC_ROOT}/PCH" |
| 16 |
"${CL_SRC_ROOT}/Interfaces" |
| 17 |
"${CL_SRC_ROOT}/wxdap" |
| 18 |
) |
| 19 |
## Definitions |
| 20 |
add_definitions(-DWXUSINGDLL_WXSQLITE3) |
| 21 |
add_definitions(-DWXUSINGDLL_CL) |
| 22 |
add_definitions(-DWXUSINGDLL_SDK) |
| 23 |
add_definitions(-DWXUSINGDLL_DAP) |
| 24 |
|
| 25 |
## By default, use the sources under the current folder |
| 26 |
FILE(GLOB PLUGIN_SRCS "*.cpp") |
| 27 |
|
| 28 |
# Define the output - shared library |
| 29 |
add_library(${PLUGIN_NAME} SHARED ${PLUGIN_SRCS}) |
| 30 |
|
| 31 |
# Codelite plugins doesn't use the "lib" prefix. |
| 32 |
set_target_properties(${PLUGIN_NAME} PROPERTIES PREFIX "") |
| 33 |
target_link_libraries(${PLUGIN_NAME} |
| 34 |
${LINKER_OPTIONS} |
| 35 |
${wxWidgets_LIBRARIES} |
| 36 |
${LIBLLDB} |
| 37 |
libcodelite |
| 38 |
plugin |
| 39 |
dapcxx) |
| 40 |
# Installation destination |
| 41 |
CL_INSTALL_PLUGIN(${PLUGIN_NAME}) |
| 42 |
codelite_install_library_target(dapcxx) |