Changeset 5986 for branches/newosd

Show
Ignore:
Timestamp:
01/04/08 01:26:33 (11 months ago)
Author:
eugene
Message:

Now, that libaosd-text is linked to libaosd, there is no need to search and include both.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/newosd/CMakeLists.txt

    r5856 r5986  
    1212mark_as_advanced(INSTALL_LIB_DIR) 
    1313 
    14 # Holds all libraries we should link to  
    15 set(LIBRARIES) 
    16  
    17 # use pkg-config to find libaosd 
    18 include(UsePkgConfig) 
    19  
    20 pkgconfig(libaosd AOSD_INCLUDE_DIR AOSD_LINK_DIR AOSD_LINK_FLAGS AOSD_CFLAGS) 
    21  
    22 if (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}) 
    26     add_definitions(${AOSD_CFLAGS}) 
    27 else (AOSD_LINK_FLAGS) 
    28     message(FATAL_ERROR "libaosd wasn't found...") 
    29 endif (AOSD_LINK_FLAGS) 
    30  
    3114# Licq headers (see cmake --help-command find_path 
    32 # for the reason we call find_path twice) 
     15# for the reason why we call find_path twice here) 
    3316find_path(LICQ_INCLUDE_DIR NAMES licq_icqd.h 
    3417          PATHS ${CMAKE_SOURCE_DIR}/../../include 
     
    4427include_directories(${LICQ_INCLUDE_DIR}) 
    4528 
     29# Holds all libraries we should link to  
     30set(LIBRARIES) 
     31 
     32# use pkg-config to find libaosd stuff 
     33include(UsePkgConfig) 
     34 
     35pkgconfig(libaosd-text AOSD_INCLUDE_DIR AOSD_LINK_DIR AOSD_LINK_FLAGS AOSD_CFLAGS) 
     36 
     37if (AOSD_LINK_FLAGS) 
     38    message(STATUS "Found aosd-text library dir: ${AOSD_LINK_DIR}") 
     39    set(LIBRARIES ${LIBRARIES} ${AOSD_LINK_FLAGS}) 
     40    include_directories(${AOSD_INCLUDE_DIR}) 
     41    add_definitions(${AOSD_CFLAGS}) 
     42else (AOSD_LINK_FLAGS) 
     43    message(FATAL_ERROR "libaosd-text wasn't found...") 
     44endif (AOSD_LINK_FLAGS) 
     45 
    4646# To find config.h 
    4747include_directories(${CMAKE_BINARY_DIR})