Warning, /multimedia/amarok/utilities/updatesigner/CMakeLists.txt is written in an unsupported language. File is not indexed.

0001 project(Amarok-Update-Signer)
0002 
0003 cmake_minimum_required(VERSION 2.6.2)
0004 
0005 find_package(Qt4 REQUIRED)
0006 find_package(KDE4 REQUIRED) #Needed for the QCA2 check to work
0007 find_package(QCA2 REQUIRED)
0008 
0009 # we need the QtCrypto library for the signer
0010 if( QCA2_FOUND )
0011     include_directories(
0012         ${CMAKE_CURRENT_BINARY_DIR}
0013         ${CMAKE_CURRENT_SOURCE_DIR}/shared
0014     )
0015     include_directories(SYSTEM
0016         ${QCA2_INCLUDE_DIR}
0017     )
0018 
0019     set(amarok-update-signer_SRCS signer.cpp amarok-update-signer.cpp)
0020     qt4_automoc(${amarok-update-signer_SRCS})
0021     add_executable(amarok-update-signer ${amarok-update-signer_SRCS})
0022     target_link_libraries(amarok-update-signer Qt5::Core ${QCA2_LIBRARIES})
0023 
0024     if(APPLE)
0025         set_target_properties(amarok-update-signer PROPERTIES LINK_FLAGS "-undefined dynamic_lookup")
0026         # install to app bundle on os x, otherwise amarok fails to load it
0027         install(TARGETS amarok-update-signer DESTINATION ${KDE_INSTALL_BUNDLEDIR}/Amarok.app/Contents/MacOS )
0028     else()
0029         install(TARGETS amarok-update-signer RUNTIME DESTINATION ${KDE_INSTALL_BINDIR} )
0030     endif()
0031 endif()