diff -ruN libcuefile-444.orig/CMakeLists.txt libcuefile-444/CMakeLists.txt --- libcuefile-444.orig/CMakeLists.txt 2009-07-25 15:58:50.000000000 +0300 +++ libcuefile-444/CMakeLists.txt 2009-07-31 16:35:29.000000000 +0300 @@ -4,4 +4,7 @@ set(CMAKE_VERBOSE_MAKEFILE false) +option(SHARED "Use shared libcuefile" OFF) + add_subdirectory(src) +add_subdirectory(include) diff -ruN libcuefile-444.orig/include/CMakeLists.txt libcuefile-444/include/CMakeLists.txt --- libcuefile-444.orig/include/CMakeLists.txt 1970-01-01 02:00:00.000000000 +0200 +++ libcuefile-444/include/CMakeLists.txt 2009-07-31 16:37:17.000000000 +0300 @@ -0,0 +1 @@ +INSTALL(DIRECTORY cuetools DESTINATION include) diff -ruN libcuefile-444.orig/src/CMakeLists.txt libcuefile-444/src/CMakeLists.txt --- libcuefile-444.orig/src/CMakeLists.txt 2009-07-25 15:58:50.000000000 +0300 +++ libcuefile-444/src/CMakeLists.txt 2009-07-31 16:36:16.000000000 +0300 @@ -1,3 +1,16 @@ add_definitions(-DYY_NEVER_INTERACTIVE) include_directories(${libcuefile_SOURCE_DIR}/include) -add_library(cuefile STATIC cd cdtext cue_parse cue_print cue_scan cuefile time toc toc_parse toc_print toc_scan) \ No newline at end of file + +add_library(cuefile-static STATIC cd cdtext cue_parse cue_print cue_scan cuefile time toc toc_parse toc_print toc_scan) +set_target_properties(cuefile-static PROPERTIES OUTPUT_NAME cuefile CLEAN_DIRECT_OUTPUT 1) + +if(SHARED) + add_library(cuefile-shared SHARED cd cdtext cue_parse cue_print cue_scan cuefile time toc toc_parse toc_print toc_scan) + set_target_properties(cuefile-shared PROPERTIES OUTPUT_NAME cuefile CLEAN_DIRECT_OUTPUT 1 VERSION 0.0.0 SOVERSION 0) +endif(SHARED) + +install(TARGETS cuefile-static LIBRARY DESTINATION "lib${LIB_SUFFIX}" ARCHIVE DESTINATION "lib${LIB_SUFFIX}") + +if(SHARED) + install(TARGETS cuefile-shared LIBRARY DESTINATION "lib${LIB_SUFFIX}" ARCHIVE DESTINATION "lib${LIB_SUFFIX}") +endif(SHARED)