|
Revision 31, 1.3 kB
(checked in by mido, 18 years ago)
|
|
snaha o rozbehani cmaku pod win xp, zatim ale neuspesna
|
-
Property svn:eol-style set to
native
|
| Line | |
|---|
| 1 | # The name of our project is "BDM". CMakeLists files in this project can |
|---|
| 2 | # refer to the root source directory of the project as ${BDM_SOURCE_DIR} and |
|---|
| 3 | # to the root binary directory of the project as ${BDM_BINARY_DIR}. |
|---|
| 4 | project (BDM) |
|---|
| 5 | |
|---|
| 6 | |
|---|
| 7 | # In order to be able to use the newly written FindXXX package, the |
|---|
| 8 | # location of the FindXXX.cmake file must be added to the cmake modules |
|---|
| 9 | # list from within a CMakeLists.txt file as follows (assuming that |
|---|
| 10 | # FindFoo.cmake exists within a directory called cmake_modules within |
|---|
| 11 | # the top-level source directory): |
|---|
| 12 | set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/CMake_modules/") |
|---|
| 13 | |
|---|
| 14 | |
|---|
| 15 | ###################### |
|---|
| 16 | #Platform specific |
|---|
| 17 | IF(WIN32) |
|---|
| 18 | FIND_PACKAGE(ITPP REQUIRED) |
|---|
| 19 | FIND_PACKAGE(ACML REQUIRED) |
|---|
| 20 | |
|---|
| 21 | IF(ITPP_FOUND) |
|---|
| 22 | INCLUDE_DIRECTORIES(${ITPP_INCLUDE_DIR}) |
|---|
| 23 | ENDIF(ITPP_FOUND) |
|---|
| 24 | |
|---|
| 25 | IF(ACML_FOUND) |
|---|
| 26 | INCLUDE_DIRECTORIES(${ACML_INCLUDE_DIR}) |
|---|
| 27 | ENDIF(ACML_FOUND) |
|---|
| 28 | |
|---|
| 29 | ELSE(WIN32) |
|---|
| 30 | #This is for UNIX makefile which does only one release at a time. |
|---|
| 31 | SET(CMAKE_BUILD_TYPE Debug) |
|---|
| 32 | SET(CMAKE_CXX_FLAGS_DEBUG "-g -Wall") |
|---|
| 33 | ENDIF(WIN32) |
|---|
| 34 | |
|---|
| 35 | # Recurse into the "dbm" and "tests" subdirectories. This does not actually |
|---|
| 36 | # cause another cmake executable to run. The same process will walk through |
|---|
| 37 | # the project's entire directory structure. |
|---|
| 38 | add_subdirectory (bdm) |
|---|
| 39 | add_subdirectory (tests) |
|---|