diff options
author | Igor Pashev <pashev.igor@gmail.com> | 2012-12-31 05:04:42 +0400 |
---|---|---|
committer | Igor Pashev <pashev.igor@gmail.com> | 2012-12-31 05:04:42 +0400 |
commit | 71dc8760ff4de5f365330d1bc571d934deb54af9 (patch) | |
tree | 7346d42a282562a3937d82307012b5857d642ce6 /icedax/CMakeLists.txt | |
download | cdrkit-941fb342494d2b61ef5fd1870a4fa695d1c7fc69.tar.gz |
Imported Upstream version 1.1.11upstream/1.1.11upstream
Diffstat (limited to 'icedax/CMakeLists.txt')
-rw-r--r-- | icedax/CMakeLists.txt | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/icedax/CMakeLists.txt b/icedax/CMakeLists.txt new file mode 100644 index 0000000..54c2e7d --- /dev/null +++ b/icedax/CMakeLists.txt @@ -0,0 +1,34 @@ +PROJECT (icedax C) +INCLUDE_DIRECTORIES(../include ../wodim ../libparanoia ${CMAKE_BINARY_DIR} ${CMAKE_BINARY_DIR}/include) +include(../include/AddScgBits.cmake) +include(../include/AddSchilyBits.cmake) +include(../include/AddNetworkBits.cmake) + +FIND_FILE (HAVE_SYS_SOUNDCARD_H sys/soundcard.h) +IF(HAVE_SYS_SOUNDCARD_H) + ADD_DEFINITIONS(-DHAVE_SYS_SOUNDCARD_H) +ENDIF(HAVE_SYS_SOUNDCARD_H) +FIND_FILE (HAVE_LINUX_SOUNDCARD_H linux/soundcard.h) +IF(HAVE_LINUX_SOUNDCARD_H) + ADD_DEFINITIONS(-DHAVE_LINUX_SOUNDCARD_H) +ENDIF(HAVE_LINUX_SOUNDCARD_H) + +FIND_LIBRARY(HAVE_LIBOSSAUDIO "ossaudio") +IF(HAVE_LIBOSSAUDIO) + LIST(APPEND EXTRA_LIBS "ossaudio") +ENDIF(HAVE_LIBOSSAUDIO) + +LIST(APPEND EXTRA_LIBS paranoia) +IF (WIN32) + LIST(APPEND EXTRA_LIBS winmm) +ENDIF (WIN32) + +LINK_DIRECTORIES(../librols ../libusal ../libparanoia) +ADD_EXECUTABLE (icedax aifc.c aiff.c base64.c icedax.c interface.c ioctl.c raw.c resample.c ringbuff.c scsi_cmds.c semshm.c setuid.c sha_func.c sndconfig.c sun.c toc.c wav.c) +TARGET_LINK_LIBRARIES(icedax wodimstuff ${EXTRA_LIBS}) +SET_TARGET_PROPERTIES(icedax PROPERTIES SKIP_BUILD_RPATH TRUE) + +INSTALL(TARGETS icedax DESTINATION bin) +INSTALL(PROGRAMS pitchplay readmult cdda2mp3 cdda2ogg DESTINATION bin) +INSTALL(FILES cdda2ogg.1 icedax.1 pitchplay.1 readmult.1 list_audio_tracks.1 DESTINATION ${MANSUBDIR}/man1) + |