Add CMake build support for kdesrc-build.

To avoid kdesrc-build build errors, it's probably easiest just to
have a shell CMakeLists.txt which CMake can process and do nothing
with.

At some point it will be used to make the docs build, but right
now the docs install to the wrong directory (as if the name of
the project was "doc" instead of kdesrc-build), so installation
is disabled.
wilder
Michael Pyne 15 years ago
parent 823d543f46
commit 7ffe80dfb0
  1. 17
      CMakeLists.txt
  2. 5
      doc/CMakeLists.txt

@ -0,0 +1,17 @@
cmake_minimum_required(VERSION 2.6) # Pretty much nothing works without this
project(kdesrc-build)
find_package(KDE4 REQUIRED) # Needed for the docs
include(KDE4Defaults)
include(MacroLibrary)
# CMake installs to $KDEDIR/share/doc/HTML/$lang/doc for some reason instead
# of $KDEDIR/share/doc/HTML/$lang/kdesrc-build.
# Figure it out later I guess...
#macro_optional_add_subdirectory(doc)
# Null install target so CMake succeeds
add_custom_target(install
COMMAND /bin/true
)

@ -1,5 +1,4 @@
project(kdesrc-build) # Yes, just redo it, it's makes everything install right
########### install files ###############
kde4_create_handbook(index.docbook INSTALL_DESTINATION ${HTML_INSTALL_DIR}/en)
install( PROGRAMS kdesrc-build.desktop DESTINATION ${XDG_APPS_INSTALL_DIR} )

Loading…
Cancel
Save