| 1 |
find_package(FLAC) |
| 2 |
if(FLAC_FOUND) |
| 3 |
add_subdirectory(flac) |
| 4 |
endif(FLAC_FOUND) |
| 5 |
|
| 6 |
find_package(OggVorbis) |
| 7 |
if(OGGVORBIS_FOUND AND HAVE_LIBVORBISENC2) |
| 8 |
add_subdirectory(vorbis) |
| 9 |
endif(OGGVORBIS_FOUND AND HAVE_LIBVORBISENC2) |
| 10 |
|
| 11 |
add_subdirectory(wav) |
| 12 |
add_subdirectory(lame) |
| 13 |
add_subdirectory(opus) |
| 14 |
|
| 15 |
########### next target ############### |
| 16 |
|
| 17 |
set(AUDIOCDPLUGINS_INSTALL_INCLUDEDIR "${KDE_INSTALL_INCLUDEDIR}/audiocdplugins") |
| 18 |
|
| 19 |
ecm_setup_version(PROJECT |
| 20 |
VARIABLE_PREFIX AUDIOCDPLUGINS |
| 21 |
VERSION_HEADER "${CMAKE_CURRENT_BINARY_DIR}/audiocdplugins_version.h" |
| 22 |
SOVERSION 5 |
| 23 |
) |
| 24 |
|
| 25 |
add_library(audiocdplugins SHARED) |
| 26 |
|
| 27 |
target_sources(audiocdplugins PRIVATE |
| 28 |
audiocdencoder.cpp audiocdencoder.h |
| 29 |
) |
| 30 |
target_include_directories(audiocdplugins |
| 31 |
PRIVATE |
| 32 |
${CMAKE_BINARY_DIR} |
| 33 |
) |
| 34 |
target_link_libraries(audiocdplugins |
| 35 |
PUBLIC |
| 36 |
KF6::KIOCore |
| 37 |
KCddb6 |
| 38 |
) |
| 39 |
|
| 40 |
generate_export_header(audiocdplugins |
| 41 |
EXPORT_MACRO_NAME AUDIOCDPLUGINS_EXPORT |
| 42 |
DEPRECATED_MACRO_NAME AUDIOCDPLUGINS_EXPORT_DEPRECATED |
| 43 |
EXPORT_FILE_NAME audiocdplugins_export.h |
| 44 |
) |
| 45 |
|
| 46 |
set_target_properties(audiocdplugins PROPERTIES |
| 47 |
VERSION ${AUDIOCDPLUGINS_VERSION} |
| 48 |
SOVERSION ${AUDIOCDPLUGINS_SOVERSION} |
| 49 |
) |
| 50 |
|
| 51 |
install(TARGETS audiocdplugins ${KDE_INSTALL_TARGETS_DEFAULT_ARGS}) |
| 52 |
|
| 53 |
install(FILES |
| 54 |
${CMAKE_CURRENT_BINARY_DIR}/audiocdplugins_export.h |
| 55 |
${CMAKE_CURRENT_BINARY_DIR}/audiocdplugins_version.h |
| 56 |
audiocdencoder.h |
| 57 |
DESTINATION ${AUDIOCDPLUGINS_INSTALL_INCLUDEDIR} |
| 58 |
COMPONENT Devel |
| 59 |
) |
| 60 |
|