Hi
I am trying to convert a large software project from makefiles to CMake.
The project is organised as a set of shared ‘star’ libraries, linked to a
static ‘kernel’ library. The current directory arrangement is:
|--stars
| |-- star1_lib
| |-- source files
| |-- makefile
| |-- star2_lib
| |-- source files
| |-- makefile
| |-- solibs
| |-- Release
| |-- <star>.so files
|
|--kernel
| |-- source files
| |-- makefile
| |-- Release
| |-- kernel.a
|
|--application
|-- makefile
|-- Release
|-- myapp.exe
In high-level terms, how could I implement this using CMake, such that
invoking ‘make’ in directory ‘application’ invokes a make of each shared
and static library, and links them to form ‘myapp.exe’?
(I understand the basics of CMake, the issue here is how to handle the make
of source code and libraries spread across a directory hierarchy).
Best regards
David
--
Powered by www.kitware.com
Please keep messages on-topic and check the CMake FAQ at:
http://www.cmake.org/Wiki/CMake_FAQ
Kitware offers various services to support the CMake community. For more
information on each offering, please visit:
CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Follow this link to subscribe/unsubscribe:
https://cmake.org/mailman/listinfo/cmake