root/CMakeLists.txt @ 168

Revision 168, 2.1 kB (checked in by smidl, 16 years ago)

Work on mixtures of EF, small changes

  • Property svn:eol-style set to native
Line 
1# Compulsory line
2cmake_minimum_required(VERSION 2.6)
3
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}.
7project (BDM)
8
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
11# list from within a CMakeLists.txt file as follows:
12set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}\\CMake_modules\\")
13
14######################
15#Platform specific
16IF(WIN32)
17# IF YOU WANT TO USE YOUR OWN INSTALLATION OF THE NEXT EXTERNAL LIBRARIES,
18# THEN IT IS NECESSARY TO CREATE TEXT FILE "\WIN32\LOCAL_PATHS.TXT" WITH
19# COPIES OF THE TWO FOLLOWING LINES AND THEN CORECT ALL INVOLVED PATHS
20        SET(ITPP_DIR "${BDM_SOURCE_DIR}\\win32\\itpp-4.0.1")
21        SET(ACML_DIR "${BDM_SOURCE_DIR}\\win32\\acml3.6.0")
22        SET(XERCES_DIR "${BDM_SOURCE_DIR}\\win32\\xerces-c_2_8_0-x86")
23
24        INCLUDE(\\win32\\local_paths.txt OPTIONAL)     
25ELSE()
26        #This is for UNIX makefile which does only one release at a time.
27        SET(CMAKE_BUILD_TYPE Debug)
28        SET(CMAKE_CXX_FLAGS_DEBUG "-g -Wall -Wno-unknown-pragmas")
29ENDIF(WIN32)
30
31FIND_PACKAGE(ITPP REQUIRED)
32FIND_PACKAGE(ACML COMPONENTS)
33FIND_PACKAGE(XERCES REQUIRED)
34
35IF(ITPP_FOUND)
36        INCLUDE_DIRECTORIES(${ITPP_INCLUDE_DIR})
37        LINK_DIRECTORIES(${NATIVE_ITPP_LIB_PATH})
38ENDIF(ITPP_FOUND)
39
40IF(ACML_FOUND)
41        INCLUDE_DIRECTORIES(${ACML_INCLUDE_DIR})
42        LINK_DIRECTORIES(${NATIVE_ACML_LIB_PATH})
43ENDIF(ACML_FOUND)
44
45IF(XERCES_FOUND)
46        INCLUDE_DIRECTORIES(${XERCES_INCLUDE_DIR})
47        LINK_DIRECTORIES(${NATIVE_XERCES_LIB_PATH})
48ENDIF(XERCES_FOUND)
49
50# Local ettings should be written to file called CMakeLists.local
51# Use this option for machine-specific options, such as prallel architectures
52INCLUDE(CMakeLists.local OPTIONAL)     
53
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.
57add_subdirectory (bdm)
58add_subdirectory (tests)
59add_subdirectory (pmsm)
60add_subdirectory (mpdm)
Note: See TracBrowser for help on using the browser.