~ubuntu-branches/debian/sid/kdevelop/sid

« back to all changes in this revision

Viewing changes to debuggers/gdb/CMakeLists.txt

  • Committer: Package Import Robot
  • Author(s): Lisandro Damián Nicanor Pérez Meyer, Pino Toscano, Sune Vuorela, Lisandro Damián Nicanor Pérez Meyer
  • Date: 2015-09-02 21:10:24 UTC
  • mfrom: (1.3.24)
  • Revision ID: package-import@ubuntu.com-20150902211024-ntruxcyb574f3xuk
Tags: 4:4.7.1-1
* Team upload.

[ Pino Toscano ]
* Change section of kdevelop-dev to libdevel.
* Add ${misc:Depends} in kdevelop-dbg and kdevelop-l10n.

[ Sune Vuorela ]
* Make KDevelop recommend kapptemplate to have more meaningful project
  templates available.

[ Lisandro Damián Nicanor Pérez Meyer ]
* New upstream release.
  - Bump kdevplatform-dev build dependency to 1.7.1.
* Remove kde-workspace from build dependencies. We no longer provide
  a KDE 4 based workspace.
  - Add libsoprano-dev as a build dependency, it was probably previously
    pulled in by kde-workspace.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
project(gdb)
2
2
 
 
3
function(add_debuggable_executable target)
 
4
    cmake_parse_arguments(add_debuggable_executable "" "" "SRCS" ${ARGN})
 
5
    add_executable(${target} ${add_debuggable_executable_SRCS})
 
6
    # force debug symbols for our debuggees, disable optimizations
 
7
    if (WIN32)
 
8
        set(_flags "/0d")
 
9
    else()
 
10
        set(_flags "-O0")
 
11
    endif()
 
12
    set_target_properties(${target} PROPERTIES COMPILE_FLAGS "${CMAKE_CXX_FLAGS_DEBUG} ${_flags}")
 
13
endfunction()
 
14
 
 
15
if(NOT APPLE)
3
16
macro_optional_find_package( KDE4Workspace 4.2.0 )
4
17
 
5
18
macro_log_feature( KDE4WORKSPACE_FOUND
6
19
"KDE 4 Workspace" "KDE 4 Workspace libraries" "kdebase/workspace" FALSE
7
20
"" "Required for building the process selection dialog for attaching GDB to a running process."
8
21
)
 
22
endif(NOT APPLE)
9
23
 
10
24
if(KDE4WORKSPACE_FOUND)
11
25
    include_directories(
16
30
    )
17
31
endif(KDE4WORKSPACE_FOUND)
18
32
 
 
33
if (CMAKE_VERSION VERSION_GREATER "2.9" OR NOT CMAKE_GENERATOR MATCHES "Ninja")
 
34
    set(HAVE_PATH_WITH_SPACES_TEST TRUE)
 
35
else()
 
36
    message(WARNING "Disabling 'path with spaces' test, this CMake version would create a faulty build.ninja file. Upgrade to at least CMake v3.0")
 
37
endif()
 
38
 
19
39
add_subdirectory(unittests)
20
40
add_subdirectory(printers)
21
41
 
80
100
 
81
101
kde4_add_ui_files(kdevgdb_PART_SRCS ${kdevgdb_PART_UI})
82
102
kde4_add_plugin(kdevgdb ${kdevgdb_PART_SRCS})
83
 
target_link_libraries(kdevgdb sublime
 
103
target_link_libraries(kdevgdb ${KDEVPLATFORM_SUBLIME_LIBRARIES}
84
104
    ${KDEVPLATFORM_INTERFACES_LIBRARIES}
85
105
    ${KDEVPLATFORM_LANGUAGE_LIBRARIES}
86
106
    ${KDEVPLATFORM_DEBUGGER_LIBRARIES}
153
173
    ${KDE4WORKSPACE_PROCESSUI_LIBS}
154
174
)
155
175
 
 
176
if (HAVE_PATH_WITH_SPACES_TEST)
 
177
    set_target_properties(gdbtest PROPERTIES COMPILE_FLAGS "-DHAVE_PATH_WITH_SPACES_TEST")
 
178
endif()
156
179
 
157
180
########### install files ###############
158
181