root/CMakeLists.txt @ 73

Revision 73, 1.7 kB (checked in by smidl, 16 years ago)

presun pmsm dokoncen

  • Property svn:eol-style set to native
RevLine 
[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}.
4project (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:
9set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}\\CMake_modules\\")
[25]10
[20]11######################
12#Platform specific
13IF(WIN32)
[35]14
15# IF YOU WANT TO USE YOUR OWN INSTALLATION OF ITTP AND/OR ACML LIBRARIES,
16# THEN IT IS NECESSARY TO CREATE TEXT FILE "\WIN32\LOCAL_PATHS.TXT" WITH
17# COPIES OF THE TWO FOLLOWING LINES AND THEN CORECT BOTH INVOLVED PATHS
[38]18        SET(ITPP_DIR "${BDM_SOURCE_DIR}\\win32\\itpp-4.0.1")
19        SET(ACML_DIR "${BDM_SOURCE_DIR}\\win32\\acml3.6.0")
[35]20
21        INCLUDE(\\win32\\local_paths.txt OPTIONAL)     
22
[25]23        FIND_PACKAGE(ITPP REQUIRED)
[31]24        FIND_PACKAGE(ACML REQUIRED)
[25]25
26        IF(ITPP_FOUND)
27           INCLUDE_DIRECTORIES(${ITPP_INCLUDE_DIR})
[35]28           LINK_DIRECTORIES(${NATIVE_ITPP_LIB_PATH})
[31]29        ENDIF(ITPP_FOUND)
[25]30
[31]31        IF(ACML_FOUND)
32           INCLUDE_DIRECTORIES(${ACML_INCLUDE_DIR})
33        ENDIF(ACML_FOUND)
[25]34
[20]35ELSE(WIN32)
[68]36        FIND_PACKAGE(ITPP REQUIRED)
37
38        IF(ITPP_FOUND)
39           INCLUDE_DIRECTORIES(${ITPP_INCLUDE_DIR})
40           LINK_DIRECTORIES(${NATIVE_ITPP_LIB_PATH})
41        ENDIF(ITPP_FOUND)
42
[20]43        #This is for UNIX makefile which does only one release at a time.
44        SET(CMAKE_BUILD_TYPE Debug)
[28]45        SET(CMAKE_CXX_FLAGS_DEBUG "-g -Wall")
[20]46ENDIF(WIN32)
[19]47
48# Recurse into the "dbm" and "tests" subdirectories.  This does not actually
49# cause another cmake executable to run.  The same process will walk through
50# the project's entire directory structure.
51add_subdirectory (bdm)
52add_subdirectory (tests)
[73]53add_subdirectory (pmsm)
Note: See TracBrowser for help on using the browser.