1
#Set the correct compiler options
2
IF(CMAKE_SIZEOF_VOID_P EQUAL 4)
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)
15
ApplicationLauncher.cpp
16
ApplicationsDelegate.cpp
17
ApplicationSortFilterModel.cpp
20
TransactionDelegate.cpp
22
PkTransactionWidget.cpp
23
PkTransactionProgressModel.cpp
35
pkg_check_modules(GLIB2 REQUIRED glib-2.0>=2.36)
36
pkg_check_modules(APPSTREAM REQUIRED appstream>=0.3.1)
38
set(libapper_SRCS ${libapper_SRCS} AppStream.cpp)
41
kde4_add_ui_files(libapper_SRCS
42
ApplicationLauncher.ui
43
PkTransactionWidget.ui
50
kde4_add_library(apper SHARED ${libapper_SRCS})
52
include_directories(${CMAKE_CURRENT_BINARY_DIR}
54
${APPSTREAM_INCLUDE_DIRS}
57
target_link_libraries(apper
60
${QPACKAGEKIT2_LIBRARIES}
61
${APPSTREAM_LIBRARIES}
64
install(TARGETS apper DESTINATION ${LIB_INSTALL_DIR}/apper)