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
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to