[CMake] How to specify default build dir in CMakeLists.txt?
Brandon J. Van Every
bvanevery at gmail.com
Mon Sep 18 23:10:17 EDT 2006
Kedzierski, Artur CIV NAVSURFWARCENDIV CORONA wrote:
> Hi,
>
> I am pretty new to CMake. Is there a way to specify a
> default build dir in CMakeLists.txt?
What are you really trying to prevent from happening? Are you just
trying to get all your *.o files to appear in a particular place,
separate from your source files, or some such? You can just set up your
source tree to build whatever way you want, although some approaches are
more complicated than others.
The 'default' for building is just your source tree. The user has the
option to change this to an out-of-directory build, which mirrors your
own source tree. The user will typically take that option if they have
"learned the CMake culture."
Cheers,
Brandon Van Every
More information about the CMake
mailing list