mirror of
https://bitbucket.org/smil3y/kde-extraapps.git
synced 2025-02-24 19:02:53 +00:00
24 lines
762 B
CMake
24 lines
762 B
CMake
include_directories( ${QT_INCLUDES} )
|
|
|
|
########### next target ###############
|
|
|
|
qt4_automoc( CollectionScanner.cpp )
|
|
|
|
set(amarokcollectionscanner_SRCS
|
|
CollectionScanner.cpp
|
|
)
|
|
|
|
add_executable(amarokcollectionscanner ${amarokcollectionscanner_SRCS} ${libchardet_SRCS})
|
|
|
|
target_link_libraries(amarokcollectionscanner
|
|
${QT_QTCORE_LIBRARY}
|
|
amarokshared
|
|
)
|
|
|
|
if(APPLE)
|
|
SET_TARGET_PROPERTIES(amarokcollectionscanner PROPERTIES LINK_FLAGS "-undefined dynamic_lookup")
|
|
# install to app bundle on os x, otherwise amarok fails to load it
|
|
install(TARGETS amarokcollectionscanner DESTINATION ${BUNDLE_INSTALL_DIR}/amarok.app/Contents/MacOS )
|
|
else(APPLE)
|
|
install(TARGETS amarokcollectionscanner RUNTIME DESTINATION ${BIN_INSTALL_DIR} )
|
|
endif(APPLE)
|