Warning, /system/apper/libapper/CMakeLists.txt is written in an unsupported language. File is not indexed.

0001 # CMakeLists for Apper private shared library
0002 
0003 add_definitions(-DTRANSLATION_DOMAIN=\"apper\")
0004 
0005 # Set the correct compiler options
0006 IF(CMAKE_SIZEOF_VOID_P EQUAL 4)
0007    # 32 bit
0008    MESSAGE(STATUS "Apper detected that you use a 32 bit processor.")
0009 ELSE(CMAKE_SIZEOF_VOID_P EQUAL 4)
0010    # 64 bit (well, anything else than 32 bit, but someone use something else than 32 or 64 bit ?)
0011    set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC")
0012    MESSAGE(STATUS "Apper detected that you use a 64 bit processor. Added -fPIC to the CXX_FLAGS.")
0013 ENDIF(CMAKE_SIZEOF_VOID_P EQUAL 4)
0014 
0015 set(libapper_SRCS
0016     CategoryMatcher.cpp
0017     PkIcons.cpp
0018     PkStrings.cpp
0019     ApplicationLauncher.cpp
0020     ApplicationsDelegate.cpp
0021     ApplicationSortFilterModel.cpp
0022     CategoryDrawer.cpp
0023     ChangesDelegate.cpp
0024     TransactionDelegate.cpp
0025     PkTransaction.cpp
0026     PkTransactionWidget.cpp
0027     PkTransactionProgressModel.cpp
0028     RepoSig.cpp
0029     LicenseAgreement.cpp
0030     PackageModel.cpp
0031     CustomProgressBar.cpp
0032     Requirements.cpp
0033     PackageImportance.cpp
0034     CategorizedView.cpp
0035     InfoWidget.cpp
0036 )
0037 
0038 if(APPSTREAM)
0039     find_package(AppStreamQt5 REQUIRED)
0040 
0041     set(libapper_SRCS ${libapper_SRCS} AppStream.cpp)
0042 endif()
0043 
0044 ki18n_wrap_ui(libapper_SRCS
0045     ApplicationLauncher.ui
0046     PkTransactionWidget.ui
0047     RepoSig.ui
0048     LicenseAgreement.ui
0049     Requirements.ui
0050     InfoWidget.ui
0051 )
0052 
0053 add_library(apper_private SHARED ${libapper_SRCS})
0054 
0055 target_link_libraries(apper_private
0056     KF5::WidgetsAddons
0057     KF5::KIOFileWidgets
0058     KF5::IconThemes
0059     KF5::I18n
0060     Qt5::Core
0061     PK::packagekitqt5
0062 )
0063 
0064 if(APPSTREAM)
0065     target_link_libraries(apper_private AppStreamQt5)
0066 endif()
0067 
0068 install(TARGETS apper_private DESTINATION ${KDE_INSTALL_LIBDIR}/apper)