Browse Source

Fix build with CMake.

pull/1/head
Ghislain MARY 11 years ago
parent
commit
28fdc4259d
3 changed files with 3 additions and 9 deletions
  1. +0
    -2
      CMakeLists.txt
  2. +3
    -1
      msbcg729/CMakeLists.txt
  3. +0
    -6
      src/CMakeLists.txt

+ 0
- 2
CMakeLists.txt View File

@ -46,7 +46,6 @@ endif()
list(APPEND CMAKE_MODULE_PATH ${CMAKE_PREFIX_PATH}/share/cmake/Modules)
message("CMAKE_MODULE_PATH: ${CMAKE_MODULE_PATH}")
include(CheckIncludeFile)
check_include_file("dlfcn.h" HAVE_DLFCN_H)
@ -75,7 +74,6 @@ configure_file(${CMAKE_CURRENT_SOURCE_DIR}/config.h.cmake ${CMAKE_CURRENT_BINARY
include_directories(
${MS2_INCLUDE_DIR}
include
src
${CMAKE_CURRENT_BINARY_DIR}


+ 3
- 1
msbcg729/CMakeLists.txt View File

@ -25,6 +25,8 @@ set(SOURCE_FILES
bcg729_enc.c
)
include_directories(${MS2_INCLUDE_DIRS})
add_library(msbcg729 SHARED ${BCG729_SOURCE_FILES} ${SOURCE_FILES})
set_target_properties(msbcg729 PROPERTIES VERSION ${PACKAGE_VERSION} SOVERSION 0)
if(MSVC)
@ -36,7 +38,7 @@ if(MSVC)
endif()
set_target_properties(msbcg729 PROPERTIES PREFIX "lib")
endif()
target_link_libraries(msbcg729 ${BCG729_LIBS})
target_link_libraries(msbcg729 ${MS2_LIBRARIES} ${ORTP_LIBRARIES})
install(TARGETS msbcg729
RUNTIME DESTINATION lib/mediastreamer/plugins


+ 0
- 6
src/CMakeLists.txt View File

@ -20,11 +20,6 @@
#
############################################################################
set(BCG729_LIBS
${MS2_LIBRARIES}
${ORTP_LIBRARIES}
)
set(BCG729_SOURCE_FILES
adaptativeCodebookSearch.c
codebooks.c
@ -62,7 +57,6 @@ if(MSVC)
endif()
set_target_properties(bcg729 PROPERTIES PREFIX "lib")
endif()
target_link_libraries(bcg729 ${BCG729_LIBS})
install(TARGETS bcg729
RUNTIME DESTINATION bin


Loading…
Cancel
Save