# The name of our project is "BDM". CMakeLists files in this project can # refer to the root source directory of the project as ${BDM_SOURCE_DIR} and # to the root binary directory of the project as ${BDM_BINARY_DIR}. project (BDM) # In order to be able to use the newly written FindXXX package, the # location of the FindXXX.cmake file must be added to the cmake modules # list from within a CMakeLists.txt file as follows (assuming that # FindFoo.cmake exists within a directory called cmake_modules within # the top-level source directory): set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/CMake_modules/") ###################### #Platform specific IF(WIN32) FIND_PACKAGE(ITPP REQUIRED) IF(ITPP_FOUND) INCLUDE_DIRECTORIES(${ITPP_INCLUDE_DIR}) # veci z puvodniho png findu.. for inspiration only # ADD_EXECUTABLE(imageviewer main.c image.c) # TARGET_LINK_LIBRARIES(imageviewer ${PNG_LIBRARY}) ENDIF(ITPP_FOUND) ELSE(WIN32) #This is for UNIX makefile which does only one release at a time. SET(CMAKE_BUILD_TYPE Debug) ENDIF(WIN32) # Recurse into the "dbm" and "tests" subdirectories. This does not actually # cause another cmake executable to run. The same process will walk through # the project's entire directory structure. add_subdirectory (bdm) add_subdirectory (tests)