Hi Thomas,
thanks for the suggestion, but that is not how it is intended to be
done. To work with the CMake-ified Log4Qt in CTK, you would no something
like that:
# This points to a dir containing Log4QtConfig.cmake
set(Log4Qt_DIR <path-to-log4qt-build-dir>)
# Realizes that Log4Qt_DIR exists and reads Log4QtConfig.cmake from there
find_package(Log4Qt)
# Log4Qt_USE_FILE was set in Log4QtConfig.cmake,
# which also sets Log4Qt_INCLUDE_DIRS correctly
include(${Log4Qt_USE_FILE})
Hope this helps,
Sascha
On 09/15/2011 03:46 PM, Thomas Wolf wrote:
> Hi Guys,
>
> i resolved the problem by patching the Log4Qt configure step for the
> usefile. It seems it didn't substitute the include-Dirs for the usefile.
>
> GenerateLog4QtConfig:
> snip -->
>
> # Include directories
> SET(Log4Qt_INCLUDE_DIRS_CONFIG ${Log4Qt_SOURCE_DIR}/src)
>
> CONFIGURE_FILE(
> ${Log4Qt_SOURCE_DIR}/UseLog4Qt.cmake.in
> ${Log4Qt_BINARY_DIR}/UseLog4Qt.cmake @ONLY)
>
> # UseLog4Qt file
> SET(Log4Qt_USE_FILE_CONFIG ${Log4Qt_BINARY_DIR}/UseLog4Qt.cmake)
>
> # Configure Log4QtConfig.cmake
> CONFIGURE_FILE(
> ${Log4Qt_SOURCE_DIR}/Log4QtConfig.cmake.in
> ${Log4Qt_BINARY_DIR}/Log4QtConfig.cmake @ONLY)
>
> <--- snap
>
> and UseLog4Qt.cmake:
> snip -->
> INCLUDE_DIRECTORIES( @Log4Qt_INCLUDE_DIRS_CONFIG@ )
> <--- snap
>
> This did the job.
>
> Regards,
> Thomas
>
> ------------------------------------------------------------------------------
> Doing More with Less: The Next Generation Virtual Desktop
> What are the key obstacles that have prevented many mid-market businesses
> from deploying virtual desktops? How do next-generation virtual desktops
> provide companies an easier-to-deploy, easier-to-manage and more affordable
> virtual desktop model.http://www.accelacomm.com/jaw/sfnl/114/51426474/
> _______________________________________________
> mitk-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/mitk-users
------------------------------------------------------------------------------
BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA
http://p.sf.net/sfu/rim-devcon-copy2
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users