Hi,
For header files, that's quite a normal thing to do - you just need to add the
CMAKE_CURRENT_BINARY_DIR to your include directories.
For .cpp files, you can write your target so that it is referencing the source
file in the binary directory. I.e.:
configure_file(
That's really more of a job for source control
if you add like if( exists ) for each potential file you want
to experiment with it could be done.
On Fri, Oct 23, 2015 at 2:07 AM, Johannes Zarl-Zierl
wrote:
> Hi,
>
> For header files, that's quite a normal thing
El 21/10/15 a las 17:45, Srinath Vadlamani escribió:
Hello All,
Is it possible to have CMake use source files in some particular
order that are placed in the out-of-source build directory? This is
allows for the convenience of having multiple builds in different
build directories due to a
Hello All,
I am aware of out-of-source builds. I want to add modified source files
to the out of source build directory and have CMake use these modified
files.
Below is my example:
$pwd
$ls
CmakeLists.txt CMake README src tests doc ...
$mkdir build1
$cd build1
$cp ../src/file1.cpp .
$
Hello All,
Is it possible to have CMake use source files in some particular order
that are placed in the out-of-source build directory? This is allows for
the convenience of having multiple builds in different build directories
due to a few file changes while preserving the files themselves?