~ubuntu-branches/ubuntu/trusty/quassel/trusty-proposed

« back to all changes in this revision

Viewing changes to CMakeLists.txt

  • Committer: Package Import Robot
  • Author(s): Scott Kitterman
  • Date: 2014-02-18 23:18:25 UTC
  • mto: This revision was merged to the branch mainline in revision 98.
  • Revision ID: package-import@ubuntu.com-20140218231825-hfgaeo3nmszt2pth
Tags: upstream-0.10~beta1
ImportĀ upstreamĀ versionĀ 0.10~beta1

Show diffs side-by-side

added added

removed removed

Lines of Context:
150
150
  if(CXX_W_OVERLOADED_VIRTUAL)
151
151
    set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Woverloaded-virtual")
152
152
  endif()
 
153
 
 
154
  # Just for miniz
 
155
  set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wextra -Wno-unused-function -fno-strict-aliasing")
153
156
endif(CMAKE_COMPILER_IS_GNUCXX)
154
157
 
155
158
# ... and for Clang
160
163
  set(CMAKE_CXX_FLAGS_DEBUG          "-g -O2 -fno-inline")
161
164
  set(CMAKE_CXX_FLAGS_DEBUGFULL      "-g3 -fno-inline")
162
165
  set(CMAKE_CXX_FLAGS_PROFILE        "-g3 -fno-inline -ftest-coverage -fprofile-arcs")
 
166
 
 
167
  set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wextra -Wno-unused-function -fno-strict-aliasing")
163
168
endif()
164
169
 
165
170
# Mac build stuff
329
334
 
330
335
  # Setup KDE4 support
331
336
  if(WITH_KDE AND NOT WITH_QT5)
 
337
    # KDE has overzealous CFLAGS making miniz not compile, so save our old flags
 
338
    set(_cflags ${CMAKE_C_FLAGS})
332
339
    find_package(KDE4)
333
340
    if(KDE4_FOUND)
334
341
      message(STATUS "Enabling KDE4 integration")
338
345
      set(CLIENT_LIBRARIES ${CLIENT_LIBRARIES} ${KDE4_KDECORE_LIBS} ${KDE4_KDEUI_LIBRARY} ${KDE4_SOLID_LIBS} ${KDE4_KNOTIFYCONFIG_LIBRARY})
339
346
      # We always use external icons for KDE4 support, since we use its iconloader rather than our own
340
347
      set(EMBED_DATA OFF)
 
348
      # Restore our old CFLAGS
 
349
      set(CMAKE_C_FLAGS ${_cflags})
341
350
    else(KDE4_FOUND)
342
351
      message(STATUS "KDE4 not found, disabling KDE integration")
343
352
    endif(KDE4_FOUND)
402
411
    )
403
412
  endif()
404
413
 
 
414
find_package(Libsnore)
 
415
if(LIBSNORE_FOUND)
 
416
    add_definitions(-DHAVE_LIBSNORE -DLIBSNORE_PLUGIN_PATH="${LIBSNORE_PLUGIN_PATH}")
 
417
    set(CLIENT_LIBRARIES ${CLIENT_LIBRARIES} ${LIBSNORE_LIBRARIES})
 
418
    set(HAVE_SNORENOTIFY true)
 
419
endif(LIBSNORE_FOUND)
405
420
endif(BUILD_GUI)
406
421
 
407
422
# Core-only deps