Skip to content

Commit

Permalink
Building sox from source
Browse files Browse the repository at this point in the history
  • Loading branch information
motiejus committed Sep 23, 2012
1 parent 1d4588f commit b0fcecf
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 deletions.
13 changes: 7 additions & 6 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
cmake_minimum_required (VERSION 2.6)
project (soundpatty)

include (CheckIncludeFile)

check_include_file("sys/inotify.h" HAVE_INOTIFY)
include_directories ("${PROJECT_SOURCE_DIR}/sox")
include_directories ("${PROJECT_SOURCE_DIR}/sox/src")
add_subdirectory (sox)
set (extra_libs ${extra_libs} libsox gsm lpc10)
set (HAVE_SOX 1)

check_include_file("sox.h" HAVE_SOX)
if(${HAVE_SOX})
set(extra_libs ${extra_libs} sox)
endif(${HAVE_SOX})
check_include_file("sys/inotify.h" HAVE_INOTIFY)

check_include_file("pthread.h" HAVE_PTHREAD)
if(${HAVE_PTHREAD})
Expand All @@ -20,6 +20,7 @@ if(${HAVE_JACK})
set(extra_libs ${extra_libs} jack)
endif(${HAVE_JACK})


add_subdirectory(src)

ENABLE_TESTING()
6 changes: 2 additions & 4 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,10 @@ endif(HAVE_JACK AND HAVE_PTHREAD)
add_executable (soundpatty ${srcs})
target_link_libraries (soundpatty ${extra_libs})

# TODO: symlink on Unix
#file(COPY soundpatty DESTINATION ${PROJECT_SOURCE_DIR})


add_test (soundpattyStarts soundpatty)

# TODO: symlink on Unix
#file(COPY soundpatty DESTINATION ${PROJECT_SOURCE_DIR})
#file(DOWNLOAD
# "http://github.com/downloads/Motiejus/SoundPatty/sample.wav"
# "${PROJECT_SOURCE_DIR}/sample.wav"
Expand Down

0 comments on commit b0fcecf

Please sign in to comment.