Show
Ignore:
Timestamp:
07/10/08 02:59:50 (3 months ago)
Author:
flynd
Message:

Some fixes to make qt4-gui compile on OpenBSD.

  • Include CheckLibraryExists? module for cmake
  • Find path for boost headers as they are needed for Licq includes
  • Added some missing includes (unistd.h)
  • Cast time_t to unsigned long in sprintf to remove warnings
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/qt4-gui/CMakeLists.txt

    r6048 r6443  
    33include(CheckIncludeFile) 
    44include(TestCXXAcceptsFlag) 
     5include(CheckLibraryExists) 
    56 
    67set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake ${CMAKE_MODULE_PATH}) 
     
    118119endif (GPGME_FOUND) 
    119120 
     121# Check for boost, used in Licq includes so we must have it 
     122find_package(Boost 1.31.1 COMPONENTS smart_ptr) 
     123link_directories ( ${Boost_LIBRARY_DIRS} ) 
     124include_directories ( ${Boost_INCLUDE_DIRS} ) 
     125set(LIBRARIES ${LIBRARIES} ${Boost_LIBRARIES}) 
    120126 
    121127# Licq headers (see cmake --help-command find_path