PageRenderTime 173ms CodeModel.GetById 71ms app.highlight 1ms RepoModel.GetById 99ms app.codeStats 1ms

/CMakeModules/FindKDE4Installed.cmake

http://github.com/tomahawk-player/tomahawk
CMake | 20 lines | 13 code | 4 blank | 3 comment | 0 complexity | 9a74992a4e3aced0a9fd7eddfefbcdb5 MD5 | raw file
 1# Simple hack to detect wether KDE4 is *installed* -- not anything about the development environment!
 2
 3FILE(TO_CMAKE_PATH "$ENV{KDEDIRS}" _KDEDIRS)
 4
 5# For KDE4 kde-config has been renamed to kde4-config
 6FIND_PROGRAM(KDE4_KDECONFIG_EXECUTABLE NAMES kde4-config
 7   # the suffix must be used since KDEDIRS can be a list of directories which don't have bin/ appended
 8   PATH_SUFFIXES bin               
 9   HINTS
10   ${CMAKE_INSTALL_PREFIX}
11   ${_KDEDIRS}
12   /opt/kde4
13   ONLY_CMAKE_FIND_ROOT_PATH
14   )
15
16IF (KDE4_KDECONFIG_EXECUTABLE)
17   SET (KDE4_INSTALLED TRUE)
18   message(STATUS "KDE4 is installed, will install protocol file")
19ENDIF (KDE4_KDECONFIG_EXECUTABLE)
20