Index: libkdegames/CMakeLists.txt =================================================================== --- libkdegames/CMakeLists.txt (revision 650552) +++ libkdegames/CMakeLists.txt (working copy) @@ -2,6 +2,18 @@ enable_testing() project(libkdegames) +# Allow libkdegames to be built without rest of kdegames module. +# Use -DSTAND_ALONE=true, for example, if you have cmakekde, cs, and cb functions in your ~./bashrc, then do: +# `cmakekde -DSTAND_ALONE=true` from libkdegames src dir +if(STAND_ALONE) + set(CMAKE_MODULE_PATH ../cmake/modules ) + find_package(KDE4 REQUIRED) + include (KDE4Defaults) + include (MacroLibrary) + add_definitions (${QT_DEFINITIONS} ${KDE4_DEFINITIONS}) + include_directories ( ${QDBUS_INCLUDE_DIRS} ${CMAKE_SOURCE_DIR} ${CMAKE_BINARY_DIR} ${KDE4_INCLUDES}) +endif(STAND_ALONE) + configure_file(highscore/config-highscore.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/highscore/config-highscore.h ) add_subdirectory( carddecks )