[CMake] Understanding directory structure

Joshua Warner joshuawarner32 at gmail.com
Sat Sep 4 18:04:58 EDT 2010


Hi,

I have a small language (written in C++) I'd like to convert to cmake, but
I'm having a hard time figuring out what to do in which CMakeLists.txt file.

Basically, I have the following directory structure:

nvm/
--tools/
----compiler/
------(C++ source)
----generator/
------(C++ source)
--n/
----(".n" source)
--src/
----(C++ source)

Roughly, a build should go like this:
1. Compile the compiler (nvm/tools/compiler/*.cpp)
2. Use compiler to compile standard library (nvm/n/.../*.n) to framework.nc
3. Compile the generator (nvm/tools/generator/*.cpp)
4. Use generator to generate framework.cpp and framework.h, from the
compiled standard library (framework.nc)
5. Compile vm (src/*.cpp & framework.cpp)

Right now, I'm a bit confused as to which CMakeLists.txt file the rules for
steps 2 and 4 should go.

Thanks!

Joshua
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20100904/9bf3747e/attachment.htm>


More information about the CMake mailing list