root/CMakeLists.txt @ 160

Revision 160, 2.0 kB (checked in by smidl, 16 years ago)

Compile userinfo on Linux without warnings

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