Revision 406, 0.8 kB
(checked in by smidl, 15 years ago)
|
Build system restructuring
|
-
Property svn:eol-style set to
native
|
Rev | Line | |
---|
[168] | 1 | # Compulsory line |
---|
| 2 | cmake_minimum_required(VERSION 2.6) |
---|
| 3 | |
---|
[19] | 4 | # The name of our project is "BDM". CMakeLists files in this project can |
---|
| 5 | # refer to the root source directory of the project as ${BDM_SOURCE_DIR} and |
---|
| 6 | # to the root binary directory of the project as ${BDM_BINARY_DIR}. |
---|
| 7 | project (BDM) |
---|
| 8 | |
---|
[25] | 9 | # In order to be able to use the newly written FindXXX package, the |
---|
| 10 | # location of the FindXXX.cmake file must be added to the cmake modules |
---|
[35] | 11 | # list from within a CMakeLists.txt file as follows: |
---|
[357] | 12 | set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}\\system\\") |
---|
[25] | 13 | |
---|
[406] | 14 | INCLUDE(SetBdmEnv) |
---|
[35] | 15 | |
---|
[406] | 16 | # Recurse into the "bdm" and "tests" subdirectories. This does not actually |
---|
[19] | 17 | # cause another cmake executable to run. The same process will walk through |
---|
| 18 | # the project's entire directory structure. |
---|
| 19 | add_subdirectory (bdm) |
---|
[134] | 20 | add_subdirectory (tests) |
---|