~dantti/apper/master

« back to all changes in this revision

Viewing changes to libshared/CMakeLists.txt

  • Committer: Daniel Nicoletti
  • Date: 2011-07-27 21:02:31 UTC
  • Revision ID: git-v1:2fb51b7787e2e9d70d2085cc8181a12f4277b047
The idea of libshared, was for it to be static, as
this doesn't seem too simple as putting STATIC word
I'm renaming it to libapper so we don't have such a geniric
lib installed (as pointed by Kevin Kofler

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(libshared_SRCS
12
 
    AppInstall.cpp
13
 
    KpkIcons.cpp
14
 
    KpkStrings.cpp
15
 
    ApplicationLauncher.cpp
16
 
    ApplicationsDelegate.cpp
17
 
    CategoryDrawer.cpp
18
 
    KpkDelegate.cpp
19
 
    TransactionDelegate.cpp
20
 
    ProgressView.cpp
21
 
    PkTransaction.cpp
22
 
    PkTransactionDialog.cpp
23
 
    KpkRepoSig.cpp
24
 
    KpkLicenseAgreement.cpp
25
 
    KpkPackageModel.cpp
26
 
    KpkProgressBar.cpp
27
 
    KpkReviewChanges.cpp
28
 
    KpkRequirements.cpp
29
 
    KpkImportance.cpp
30
 
    KpkSimulateModel.cpp
31
 
    KpkCategorizedView.cpp
32
 
)
33
 
 
34
 
kde4_add_ui_files(libshared_SRCS
35
 
    ApplicationLauncher.ui
36
 
    PkTransaction.ui
37
 
    KpkRepoSig.ui
38
 
    KpkLicenseAgreement.ui
39
 
    KpkReviewChanges.ui
40
 
    KpkRequirements.ui
41
 
)
42
 
 
43
 
kde4_add_library(sharedlib SHARED ${libshared_SRCS})
44
 
target_link_libraries(sharedlib
45
 
    ${KDE4_KDEUI_LIBS}
46
 
    ${KDE4_KIO_LIBS}
47
 
    ${QPACKAGEKIT2_LIBRARIES})
48
 
 
49
 
install(TARGETS sharedlib ${INSTALL_TARGETS_DEFAULT_ARGS})