[CMake] KDE3 apps
Andreas Pakulat
apaku at gmx.de
Sun Aug 10 06:30:22 EDT 2008
On 10.08.08 11:59:23, alpha_one_x86 wrote:
> I have try it:
>
> if(KDE4_FOUND)
> set (QTONLY FALSE CACHE BOOL "Determines if we should compile for Qt
> only.")
> ADD_DEFINITIONS(-DKDE_VERSION=4.0)
> else(KDE4_FOUND)
> if(KDE3_FOUND)
> set (QTONLY FALSE CACHE BOOL "Determines if we should compile for Qt
> only.")
> ADD_DEFINITIONS(-DKDE_VERSION=3.5)
> FIND_PACKAGE(KDE3 REQUIRED)
> SET(CMAKE_VERBOSE_MAKEFILE ON)
> ADD_DEFINITIONS(${QT_DEFINITIONS} ${KDE3_DEFINITIONS})
> LINK_DIRECTORIES(${KDE3_LIB_DIR})
> INCLUDE_DIRECTORIES( ${KDE3_INCLUDE_DIR} ${QT_INCLUDE_DIR}
> ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR} )
> else(KDE3_FOUND)
> set (QTONLY TRUE CACHE BOOL "Determines if we should compile for Qt
> only.")
> endif(KDE3_FOUND)
> endif(KDE4_FOUND)
>
> I am under KDE 3.5, that's not detect KDE 3.5. What's is wrong?
> Thanks for your help.
Thats because there's no code that would set KDE4_FOUND or KDE3_FOUND.
How do you set those two variables?
Andreas
--
Everything that you know is wrong, but you can be straightened out.
More information about the CMake
mailing list