~ubuntu-branches/ubuntu/saucy/quassel/saucy-proposed

« back to all changes in this revision

Viewing changes to src/common/CMakeLists.txt

  • Committer: Bazaar Package Importer
  • Author(s): Scott Kitterman
  • Date: 2010-02-17 12:49:50 UTC
  • mto: This revision was merged to the branch mainline in revision 59.
  • Revision ID: james.westby@ubuntu.com-20100217124950-v9hajw5d2xa6fszn
Tags: upstream-0.6~beta1
ImportĀ upstreamĀ versionĀ 0.6~beta1

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
set(SOURCES
8
8
    aliasmanager.cpp
9
9
    backlogmanager.cpp
 
10
    basichandler.cpp
10
11
    bufferinfo.cpp
11
12
    buffersyncer.cpp
12
13
    bufferviewconfig.cpp
37
38
set(MOC_HDRS
38
39
    aliasmanager.h
39
40
    backlogmanager.h
 
41
    basichandler.h
40
42
    buffersyncer.h
41
43
    bufferviewconfig.h
42
44
    bufferviewmanager.h
77
79
  target_link_libraries(mod_common "-framework CoreServices" "-framework CoreFoundation")
78
80
endif(APPLE)
79
81
 
80
 
if(CMAKE_HOST_UNIX)
81
 
    find_library(libdl dl)
82
 
    if (libdl-NOTFOUND)
83
 
        message(FATAL_ERROR "Cannot find required library: libdl")
84
 
    endif (libdl-NOTFOUND)
85
 
 
 
82
if(CMAKE_HOST_SYSTEM_NAME STREQUAL "Linux")
 
83
  find_library(libdl dl)
 
84
  if(NOT libdl MATCHES "NOTFOUND")
86
85
    target_link_libraries(mod_common ${libdl})
87
 
endif(CMAKE_HOST_UNIX)
 
86
  endif(NOT libdl MATCHES "NOTFOUND")
 
87
endif(CMAKE_HOST_SYSTEM_NAME STREQUAL "Linux")