diff -ruN libreplaygain-444.orig/CMakeLists.txt libreplaygain-444/CMakeLists.txt --- libreplaygain-444.orig/CMakeLists.txt 2009-07-25 14:49:52.000000000 +0300 +++ libreplaygain-444/CMakeLists.txt 2009-07-31 16:29:50.000000000 +0300 @@ -4,8 +4,11 @@ set(CMAKE_VERBOSE_MAKEFILE false) +option(SHARED "Use shared libreplaygain" OFF) + if(NOT MSVC) set(CMAKE_C_FLAGS "-O3 -fomit-frame-pointer -pipe") endif(NOT MSVC) -add_subdirectory(src) \ No newline at end of file +add_subdirectory(src) +add_subdirectory(include) diff -ruN libreplaygain-444.orig/include/CMakeLists.txt libreplaygain-444/include/CMakeLists.txt --- libreplaygain-444.orig/include/CMakeLists.txt 1970-01-01 02:00:00.000000000 +0200 +++ libreplaygain-444/include/CMakeLists.txt 2009-07-31 16:28:59.000000000 +0300 @@ -0,0 +1 @@ +INSTALL(DIRECTORY replaygain DESTINATION include) diff -ruN libreplaygain-444.orig/src/CMakeLists.txt libreplaygain-444/src/CMakeLists.txt --- libreplaygain-444.orig/src/CMakeLists.txt 2009-07-25 14:49:52.000000000 +0300 +++ libreplaygain-444/src/CMakeLists.txt 2009-07-31 16:31:36.000000000 +0300 @@ -3,7 +3,13 @@ add_library(replaygain-static STATIC gain_analysis) set_target_properties(replaygain-static PROPERTIES OUTPUT_NAME replaygain CLEAN_DIRECT_OUTPUT 1) -add_library(replaygain-shared SHARED gain_analysis) -set_target_properties(replaygain-shared PROPERTIES OUTPUT_NAME replaygain CLEAN_DIRECT_OUTPUT 1 VERSION 1.0.0 SOVERSION 1) +if(SHARED) + add_library(replaygain-shared SHARED gain_analysis) + set_target_properties(replaygain-shared PROPERTIES OUTPUT_NAME replaygain CLEAN_DIRECT_OUTPUT 1 VERSION 1.0.0 SOVERSION 1) +endif(SHARED) -install(TARGETS replaygain-static replaygain-shared LIBRARY DESTINATION lib ARCHIVE DESTINATION lib) +install(TARGETS replaygain-static LIBRARY DESTINATION "lib${LIB_SUFFIX}" ARCHIVE DESTINATION "lib${LIB_SUFFIX}") + +if(SHARED) + install(TARGETS replaygain-shared LIBRARY DESTINATION "lib${LIB_SUFFIX}" ARCHIVE DESTINATION "lib${LIB_SUFFIX}") +endif(SHARED)