Changeset 5774 for branches/newosd

Show
Ignore:
Timestamp:
11/07/07 11:07:36 (13 months ago)
Author:
eugene
Message:

Initial configuration checks.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/newosd/CMakeLists.txt

    r5773 r5774  
     1project(newosd) 
     2cmake_minimum_required(VERSION 2.4.2) 
     3 
     4# Plugin version 
     5set(VERSION_MAJOR 1) 
     6set(VERSION_MINOR 3) 
     7set(VERSION_RELEASE 5) 
     8 
     9# Install dirs 
     10set(INSTALL_LIB_DIR lib CACHE PATH 
     11  "Directory to install the plugin to. A relative path is relative to CMAKE_INSTALL_PREFIX.") 
     12mark_as_advanced(INSTALL_LIB_DIR) 
     13 
     14# Holds all libraries we should link to  
     15set(LIBRARIES) 
     16 
     17# use pkg-config to find libaosd 
     18include(UsePkgConfig) 
     19 
     20pkgconfig(libaosd AOSD_INCLUDE_DIR AOSD_LINK_DIR AOSD_LINK_FLAGS AOSD_CFLAGS) 
     21 
     22if (AOSD_LINK_FLAGS) 
     23    message(STATUS "Found aosd library dir: ${AOSD_LINK_DIR}") 
     24    set(LIBRARIES ${LIBRARIES} ${AOSD_LINK_FLAGS}) 
     25    include_directories(${AOSD_INCLUDE_DIR}) 
     26else (AOSD_LINK_FLAGS) 
     27    message(FATAL_ERROR "libaosd wasn't found...") 
     28endif (AOSD_LINK_FLAGS) 
     29 
     30# Licq headers (see cmake --help-command find_path 
     31# for the reason we call find_path twice) 
     32find_path(LICQ_INCLUDE_DIR NAMES licq_icqd.h 
     33          PATHS ${CMAKE_SOURCE_DIR}/../../include 
     34                ${CMAKE_SOURCE_DIR}/../licq/include 
     35          NO_DEFAULT_PATHS) 
     36find_path(LICQ_INCLUDE_DIR NAMES licq_icqd.h) 
     37 
     38if (NOT LICQ_INCLUDE_DIR) 
     39  message(FATAL_ERROR "Licq header files not found. Please specify the location with -DLICQ_INCLUDE_DIR") 
     40endif (NOT LICQ_INCLUDE_DIR) 
     41 
     42message(STATUS "Found Licq include dir: ${LICQ_INCLUDE_DIR}") 
     43include_directories(${LICQ_INCLUDE_DIR}) 
     44 
     45add_subdirectory(src)