Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:ThJordan
libresample
libresample-fix--0.1.3-shlib-cmake-pkgconfig.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File libresample-fix--0.1.3-shlib-cmake-pkgconfig.patch of Package libresample
diff --git a/CMakeLists.txt b/CMakeLists.txt index e70429f..d4d8499 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -6,6 +6,9 @@ include(CheckIncludeFiles) include(CheckTypeSize) include(FindPkgConfig) +include_directories(${CMAKE_CURRENT_SOURCE_DIR}/include) +include_directories(${CMAKE_CURRENT_BINARY_DIR}/src) + check_type_size("void *" POINTER_SIZE) if(${POINTER_SIZE} EQUAL 8) @@ -29,6 +32,7 @@ configure_file(${CMAKE_CURRENT_SOURCE_DIR}/src/configtemplate.h ${CMAKE_CURRENT_ configure_file(${CMAKE_CURRENT_SOURCE_DIR}/libresample.pc.in ${CMAKE_CURRENT_BINARY_DIR}/libresample.pc) add_library(resample SHARED src/filterkit.c src/resample.c src/resamplesubs.c) +target_link_libraries(resample m) set_target_properties(resample PROPERTIES VERSION 1.0 SOVERSION 1) install(TARGETS resample LIBRARY DESTINATION ${LIBDIR}) install(FILES include/libresample.h DESTINATION include) @@ -37,21 +41,21 @@ add_executable(testresample tests/testresample.c) target_link_libraries(testresample resample m) add_test(testresample testresample) -if(SNDFILE_FOUND) - add_executable(resample-sndfile tests/resample-sndfile.c) - target_link_libraries(resample-sndfile resample m) - set_target_properties(resample-sndfile PROPERTIES COMPILE_FLAGS "${SNDFILE_CFLAGS}" LINK_FLAGS "${SNDFILE_LDFLAGS}") - install(TARGETS resample-sndfile RUNTIME DESTINATION bin) -endif(SNDFILE_FOUND) - -if(SAMPLERATE_FOUND) - add_executable(compareresample tests/compareresample.c) - target_link_libraries(compareresample resample m) - set_target_properties(compareresample PROPERTIES COMPILE_FLAGS "${SAMPLERATE_CFLAGS}" LINK_FLAGS "${SAMPLERATE_LDFLAGS}") - add_test(compareresample compareresample) -endif(SAMPLERATE_FOUND) - -install(FILES libresample.pc DESTINATION ${LIBDIR}/pkgconfig) +#if(SNDFILE_FOUND) +# add_executable(resample-sndfile tests/resample-sndfile.c) +# target_link_libraries(resample-sndfile resample) +# set_target_properties(resample-sndfile PROPERTIES COMPILE_FLAGS "${SNDFILE_CFLAGS}" LINK_FLAGS "${SNDFILE_LDFLAGS}") +# install(TARGETS resample-sndfile RUNTIME DESTINATION bin) +#endif(SNDFILE_FOUND) +# +#if(SAMPLERATE_FOUND) +# add_executable(compareresample tests/compareresample.c) +# target_link_libraries(compareresample resample) +# set_target_properties(compareresample PROPERTIES COMPILE_FLAGS "${SAMPLERATE_CFLAGS}" LINK_FLAGS "${SAMPLERATE_LDFLAGS}") +# add_test(compareresample compareresample) +#endif(SAMPLERATE_FOUND) + +install(FILES ${CMAKE_CURRENT_BINARY_DIR}/libresample.pc DESTINATION ${LIBDIR}/pkgconfig) if(DOXYGEN) add_custom_command(OUTPUT docs/html/index.html COMMAND ${DOXYGEN} docs/Doxyfile DEPENDS include/libresample.h) diff --git a/tests/testresample.c b/tests/testresample.c index a59aa8b..dfaf5d6 100644 --- a/tests/testresample.c +++ b/tests/testresample.c @@ -11,7 +11,7 @@ **********************************************************************/ -#include "../include/libresample.h" +#include "libresample.h" #include <stdio.h> #include <stdlib.h>
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor