[19] | 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 | |
---|
[25] | 6 | # In order to be able to use the newly written FindXXX package, the |
---|
| 7 | # location of the FindXXX.cmake file must be added to the cmake modules |
---|
[35] | 8 | # list from within a CMakeLists.txt file as follows: |
---|
| 9 | set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}\\CMake_modules\\") |
---|
[25] | 10 | |
---|
[20] | 11 | ###################### |
---|
| 12 | #Platform specific |
---|
| 13 | IF(WIN32) |
---|
[111] | 14 | # IF YOU WANT TO USE YOUR OWN INSTALLATION OF THE NEXT EXTERNAL LIBRARIES, |
---|
[35] | 15 | # THEN IT IS NECESSARY TO CREATE TEXT FILE "\WIN32\LOCAL_PATHS.TXT" WITH |
---|
| 16 | # COPIES OF THE TWO FOLLOWING LINES AND THEN CORECT BOTH INVOLVED PATHS |
---|
[38] | 17 | SET(ITPP_DIR "${BDM_SOURCE_DIR}\\win32\\itpp-4.0.1") |
---|
| 18 | SET(ACML_DIR "${BDM_SOURCE_DIR}\\win32\\acml3.6.0") |
---|
[111] | 19 | SET(XSD_DIR "${BDM_SOURCE_DIR}\\win32\\xsd-3.1.0-i686") |
---|
| 20 | SET(XERCES_DIR "${BDM_SOURCE_DIR}\\win32\\xerces-c_2_8_0-x86") |
---|
[35] | 21 | |
---|
| 22 | INCLUDE(\\win32\\local_paths.txt OPTIONAL) |
---|
[118] | 23 | ELSE() |
---|
[113] | 24 | #This is for UNIX makefile which does only one release at a time. |
---|
| 25 | SET(CMAKE_BUILD_TYPE Debug) |
---|
| 26 | SET(CMAKE_CXX_FLAGS_DEBUG "-g -Wall") |
---|
| 27 | ENDIF(WIN32) |
---|
[35] | 28 | |
---|
[113] | 29 | FIND_PACKAGE(ITPP REQUIRED) |
---|
| 30 | FIND_PACKAGE(ACML COMPONENTS) |
---|
| 31 | FIND_PACKAGE(XSD REQUIRED) |
---|
| 32 | FIND_PACKAGE(XERCES REQUIRED) |
---|
[25] | 33 | |
---|
[113] | 34 | IF(ITPP_FOUND) |
---|
| 35 | INCLUDE_DIRECTORIES(${ITPP_INCLUDE_DIR}) |
---|
| 36 | LINK_DIRECTORIES(${NATIVE_ITPP_LIB_PATH}) |
---|
| 37 | ENDIF(ITPP_FOUND) |
---|
[25] | 38 | |
---|
[113] | 39 | IF(ACML_FOUND) |
---|
| 40 | INCLUDE_DIRECTORIES(${ACML_INCLUDE_DIR}) |
---|
| 41 | LINK_DIRECTORIES(${NATIVE_ACML_LIB_PATH}) |
---|
| 42 | ENDIF(ACML_FOUND) |
---|
[25] | 43 | |
---|
[113] | 44 | IF(XSD_FOUND) |
---|
| 45 | INCLUDE_DIRECTORIES(${XSD_INCLUDE_DIR}) |
---|
| 46 | ENDIF(XSD_FOUND) |
---|
[111] | 47 | |
---|
[113] | 48 | IF(XERCES_FOUND) |
---|
| 49 | INCLUDE_DIRECTORIES(${XERCES_INCLUDE_DIR}) |
---|
| 50 | LINK_DIRECTORIES(${NATIVE_XERCES_LIB_PATH}) |
---|
| 51 | ENDIF(XERCES_FOUND) |
---|
[111] | 52 | |
---|
[68] | 53 | |
---|
[19] | 54 | # Recurse into the "dbm" and "tests" subdirectories. This does not actually |
---|
| 55 | # cause another cmake executable to run. The same process will walk through |
---|
| 56 | # the project's entire directory structure. |
---|
| 57 | add_subdirectory (bdm) |
---|
| 58 | add_subdirectory (tests) |
---|
[73] | 59 | add_subdirectory (pmsm) |
---|