[CMake] Using fluid, fltk, cmake and own headers
Alexander Neundorf
a.neundorf-work at gmx.net
Tue Aug 28 14:39:57 EDT 2007
On Tuesday 28 August 2007 14:33, Atwood, Robert C wrote:
> This seems to work (not quite as you suggest but similar)
>
> > 1.
> > INCLUDE_DIRECTORIES(${WIRS_BUILD_DIR}/path/to/.{cxx|h}) as
> > appropriate.
>
> You mean ${WIRS_SOURCE_DIR} ... and that seems to work but I am still
> puzzled why it is not included by default, it seems logical that your
> own source dir should be included during the build process.
You can add the following to your toplevel CMakeLists.txt:
SET(CMAKE_INCLUDE_CURRENT_DIR TRUE)
then the current source and the current binary dir are always include search
paths.
make.org/Wiki/CMake_Useful_Variables#Various_Options
Bye
Alex
More information about the CMake
mailing list