root/CMakeLists.txt @ 25

Revision 25, 1.3 kB (checked in by mido, 16 years ago)

zacatek zprovoznovani CMAKEu na platforme WIN32, pridan modul FindTIPP, jaho cesty jsou zatim ponekud sebestredne nastavene:)

  • 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
7# In order to be able to use the newly written FindXXX package, the
8# location of the FindXXX.cmake file must be added to the cmake modules
9# list from within a CMakeLists.txt file as follows (assuming that
10# FindFoo.cmake exists within a directory called cmake_modules within
11# the top-level source directory):
12set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/CMake_modules/")
13
14
15######################
16#Platform specific
17IF(WIN32)
18        FIND_PACKAGE(ITPP REQUIRED)
19
20        IF(ITPP_FOUND)
21           INCLUDE_DIRECTORIES(${ITPP_INCLUDE_DIR})
22
23# veci z puvodniho png findu.. for inspiration only
24#          ADD_EXECUTABLE(imageviewer main.c image.c)
25#          TARGET_LINK_LIBRARIES(imageviewer ${PNG_LIBRARY})
26
27        ENDIF(ITPP_FOUND)
28
29ELSE(WIN32)
30        #This is for UNIX makefile which does only one release at a time.
31        SET(CMAKE_BUILD_TYPE Debug)
32ENDIF(WIN32)
33
34# Recurse into the "dbm" and "tests" subdirectories.  This does not actually
35# cause another cmake executable to run.  The same process will walk through
36# the project's entire directory structure.
37add_subdirectory (bdm)
38add_subdirectory (tests)
Note: See TracBrowser for help on using the browser.