root/CMakeLists.txt @ 111

Revision 111, 2.2 kB (checked in by mido, 16 years ago)

pridana knihovna XSD (a jeji chlebodarkyne XERCES), v ramci Win32 zprovoznen priklad tests/test_xsd_hello.cxx

  • 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
15# IF YOU WANT TO USE YOUR OWN INSTALLATION OF THE NEXT EXTERNAL 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
18        SET(ITPP_DIR "${BDM_SOURCE_DIR}\\win32\\itpp-4.0.1")
19        SET(ACML_DIR "${BDM_SOURCE_DIR}\\win32\\acml3.6.0")
20        SET(XSD_DIR "${BDM_SOURCE_DIR}\\win32\\xsd-3.1.0-i686")
21        SET(XERCES_DIR "${BDM_SOURCE_DIR}\\win32\\xerces-c_2_8_0-x86")
22
23        INCLUDE(\\win32\\local_paths.txt OPTIONAL)     
24
25        FIND_PACKAGE(ITPP REQUIRED)
26        FIND_PACKAGE(ACML REQUIRED)
27        FIND_PACKAGE(XSD REQUIRED)
28        FIND_PACKAGE(XERCES REQUIRED)
29
30        IF(ITPP_FOUND)
31           INCLUDE_DIRECTORIES(${ITPP_INCLUDE_DIR})
32           LINK_DIRECTORIES(${NATIVE_ITPP_LIB_PATH})
33        ENDIF(ITPP_FOUND)
34
35        IF(ACML_FOUND)
36           INCLUDE_DIRECTORIES(${ACML_INCLUDE_DIR})
37           LINK_DIRECTORIES(${NATIVE_ACML_LIB_PATH})
38        ENDIF(ACML_FOUND)
39
40        IF(XSD_FOUND)
41           INCLUDE_DIRECTORIES(${XSD_INCLUDE_DIR})
42        ENDIF(XSD_FOUND)
43
44        IF(XERCES_FOUND)
45           INCLUDE_DIRECTORIES(${XERCES_INCLUDE_DIR})
46           LINK_DIRECTORIES(${NATIVE_XERCES_LIB_PATH})
47        ENDIF(XERCES_FOUND)
48
49ELSE(WIN32)
50        ADD_DEFINITIONS(-DNODEFAULTLIB:library)
51        FIND_PACKAGE(ITPP REQUIRED)
52
53        IF(ITPP_FOUND)
54           INCLUDE_DIRECTORIES(${ITPP_INCLUDE_DIR})
55           LINK_DIRECTORIES(${NATIVE_ITPP_LIB_PATH})
56        ENDIF(ITPP_FOUND)
57
58        #This is for UNIX makefile which does only one release at a time.
59        SET(CMAKE_BUILD_TYPE Debug)
60        SET(CMAKE_CXX_FLAGS_DEBUG "-g -Wall")
61ENDIF(WIN32)
62
63# Recurse into the "dbm" and "tests" subdirectories.  This does not actually
64# cause another cmake executable to run.  The same process will walk through
65# the project's entire directory structure.
66add_subdirectory (bdm)
67add_subdirectory (tests)
68add_subdirectory (pmsm)
Note: See TracBrowser for help on using the browser.