On Thursday 04 September 2008 16:31:17 Bo Huang wrote:
> It seems there is a ${CMAKE_CURRENT_SOURCE_DIR}) variable. Can I use this
> in a line such as:
>
> INCLUDE("C:/Users/BHuang/Documents/myProj/myProjSubDir/cmake_install.cmake"
>)
>
> To make it
>
> INCLUDE("${(CMAKE_CURRENT_SOURCE_DIR})/cmake_install.cmake")
>
> If so, how I can set this variable's value? I cannot find it.
>
CMAKE_CURRENT_SOURCE_DIR
this is the directory where the currently processed CMakeLists.txt is
located in
CMAKE_SOURCE_DIR
this is the directory, from which cmake was started, i.e. the top level
source directory
There is also a PROJECT_SOURCE_DIR variable which points to the directory of
the last project() command.
-- andreas
--
http://www.cynapses.org/ - cybernetic synapses
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ CMake mailing list [email protected] http://www.cmake.org/mailman/listinfo/cmake
