4 set(LIBRARY_OUTPUT_PATH "${CMAKE_BINARY_DIR}/plugins")
6 set(LIBRARY_OUTPUT_PATH "${CMAKE_BINARY_DIR}/lib/plugins")
9 include_directories("${CMAKE_SOURCE_DIR}/core/include")
11 macro(KHOPPER_ADD_PLUGIN target)
12 add_definitions(${QT_DEFINITIONS} -DQT_PLUGIN -DQT_SHARED)
13 add_definitions(-DKHOPPER_PLUGIN_ID=${target})
14 add_dependencies(${target} libkhopper)
15 target_link_libraries(${target} libkhopper)
16 set_target_properties(${target} PROPERTIES VERSION ${KHOPPER_VERSION} SOVERSION ${KHOPPER_VERSION})
17 install(TARGETS ${target}
18 RUNTIME DESTINATION "plugins"
19 LIBRARY DESTINATION "lib/khopper/plugins")
22 add_subdirectory(cuesheet)
26 list(APPEND KHOPPER_OPTIONAL_FOUND "Found libav*, FFmpeg plugin will be build.")
27 add_subdirectory(ffmpeg)
29 list(APPEND KHOPPER_OPTIONAL_NOT_FOUND "libav* for FFmpeg plugin")
34 if(MP3LAME_FOUND AND TAGLIB_FOUND)
35 list(APPEND KHOPPER_OPTIONAL_FOUND "Found libmp3lame and TagLib, mp3Lame plugin will be build.")
36 add_subdirectory(mp3lame)
39 list(APPEND KHOPPER_OPTIONAL_NOT_FOUND "libmp3lame for mp3Lame plugin")
42 list(APPEND KHOPPER_OPTIONAL_NOT_FOUND "TagLib for mp3Lame plugin")
46 add_subdirectory(redbook)
48 add_subdirectory(single)
51 find_package(OggVorbis)
52 if(FLAC_FOUND AND OGGVORBIS_FOUND)
53 list(APPEND KHOPPER_OPTIONAL_FOUND "Found libFLAC and OggVorbis, Xiph plugin will be build.")
54 add_subdirectory(xiph)
57 list(APPEND KHOPPER_OPTIONAL_NOT_FOUND "libFLAC for Xiph plugin")
59 if(NOT OGGVORBIS_FOUND)
60 list(APPEND KHOPPER_OPTIONAL_NOT_FOUND "OggVorbis for Xiph plugin")
64 set(KHOPPER_OPTIONAL_FOUND ${KHOPPER_OPTIONAL_FOUND} PARENT_SCOPE)
65 set(KHOPPER_OPTIONAL_NOT_FOUND ${KHOPPER_OPTIONAL_NOT_FOUND} PARENT_SCOPE)