Changeset 25 for CMakeLists.txt

Show
Ignore:
Timestamp:
02/19/08 23:06:32 (16 years ago)
Author:
mido
Message:

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

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • CMakeLists.txt

    r20 r25  
    44project (BDM) 
    55 
     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 
    615###################### 
    716#Platform specific 
    817IF(WIN32) 
    9         ########### TOHLE BY BYLO HEZKE JAKO MODUL DO CMakeu.... 
    10   # najdi knihovny a include... 
    11   FIND_PATH(ITPP_INCLUDE_DIR itpp/itbase.h 
    12         C:\\ 
    13         # a dalsi 
    14         ) 
    15   FIND_LIBRARY(ITPP_LIB_DIR 
    16         libitpp 
    17         ${ITPP_INCLUDE}/lib 
    18         C:\\ 
    19         C:\\Program Files 
    20 # a dalsi 
    21         ) 
    22   INCLUDE_DIRECTORY(ITPP_INCLUDE) 
     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 
    2329ELSE(WIN32) 
    2430        #This is for UNIX makefile which does only one release at a time.