kde-extraapps/amarok/utilities/collectionscanner/CMakeLists.txt
2015-01-31 00:30:50 +00:00

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)