~ubuntu-branches/debian/jessie/apper/jessie

« back to all changes in this revision

Viewing changes to .pc/02_lower-appstream-dep.patch/libapper/CMakeLists.txt

  • Committer: Package Import Robot
  • Author(s): Matthias Klumpp
  • Date: 2013-07-30 12:34:46 UTC
  • mfrom: (1.1.4)
  • Revision ID: package-import@ubuntu.com-20130730123446-cgzujaj03pc61drn
Tags: 0.8.1-1
* New upstream release: 0.8.1
* Depend on software-properties-kde instead of suggesting it (Closes: #696583)
* Add patch to make AppStream loading more failsafe

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#Set the correct compiler options
 
2
IF(CMAKE_SIZEOF_VOID_P EQUAL 4)
 
3
   # 32 bit
 
4
   MESSAGE(STATUS "Apper detected that you use a 32 bit processor.")
 
5
ELSE(CMAKE_SIZEOF_VOID_P EQUAL 4)
 
6
   # 64 bit (well, anything else than 32 bit, but someone use something else than 32 or 64 bit ?)
 
7
   set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC")
 
8
   MESSAGE(STATUS "Apper detected that you use a 64 bit processor. Added -fPIC to the CXX_FLAGS.")
 
9
ENDIF(CMAKE_SIZEOF_VOID_P EQUAL 4)
 
10
 
 
11
set(libapper_SRCS
 
12
    CategoryMatcher.cpp
 
13
    PkIcons.cpp
 
14
    PkStrings.cpp
 
15
    ApplicationLauncher.cpp
 
16
    ApplicationsDelegate.cpp
 
17
    ApplicationSortFilterModel.cpp
 
18
    CategoryDrawer.cpp
 
19
    ChangesDelegate.cpp
 
20
    TransactionDelegate.cpp
 
21
    PkTransaction.cpp
 
22
    PkTransactionWidget.cpp
 
23
    PkTransactionProgressModel.cpp
 
24
    RepoSig.cpp
 
25
    LicenseAgreement.cpp
 
26
    PackageModel.cpp
 
27
    CustomProgressBar.cpp
 
28
    Requirements.cpp
 
29
    PackageImportance.cpp
 
30
    CategorizedView.cpp
 
31
    InfoWidget.cpp
 
32
)
 
33
 
 
34
if(APPSTREAM)
 
35
    pkg_check_modules(GLIB2 REQUIRED glib-2.0>=2.36)
 
36
    pkg_check_modules(APPSTREAM REQUIRED appstream>=0.3.1)
 
37
 
 
38
    set(libapper_SRCS ${libapper_SRCS} AppStream.cpp)
 
39
endif()
 
40
 
 
41
kde4_add_ui_files(libapper_SRCS
 
42
    ApplicationLauncher.ui
 
43
    PkTransactionWidget.ui
 
44
    RepoSig.ui
 
45
    LicenseAgreement.ui
 
46
    Requirements.ui
 
47
    InfoWidget.ui
 
48
)
 
49
 
 
50
kde4_add_library(apper SHARED ${libapper_SRCS})
 
51
 
 
52
include_directories(${CMAKE_CURRENT_BINARY_DIR}
 
53
                    ${GLIB2_INCLUDE_DIR}
 
54
                    ${APPSTREAM_INCLUDE_DIRS}
 
55
)
 
56
 
 
57
target_link_libraries(apper
 
58
    ${KDE4_KDEUI_LIBS}
 
59
    ${KDE4_KIO_LIBS}
 
60
    ${QPACKAGEKIT2_LIBRARIES}
 
61
    ${APPSTREAM_LIBRARIES}
 
62
)
 
63
 
 
64
install(TARGETS apper DESTINATION ${LIB_INSTALL_DIR}/apper)