Changeset 240


Ignore:
Timestamp:
03/26/07 13:23:05 (14 years ago)
Author:
r2d
Message:

CMakeLists.txt update to build replaygain using libreplaygain

Location:
libmpc/branches/r2d
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • libmpc/branches/r2d/CMakeLists.txt

    r238 r240  
    88
    99if(NOT MSVC)
    10 set(CMAKE_C_FLAGS "-O2 -fomit-frame-pointer -pipe")
     10set(CMAKE_C_FLAGS "-O3 -fomit-frame-pointer -pipe")
    1111endif(NOT MSVC)
    1212
     
    1515add_subdirectory(libmpcenc)
    1616add_subdirectory(libwavformat)
    17 # add_subdirectory(mpcgain)
     17add_subdirectory(mpcgain)
    1818add_subdirectory(mpcdec)
    1919add_subdirectory(mpcenc)
  • libmpc/branches/r2d/mpcgain/CMakeLists.txt

    r236 r240  
     1FIND_PATH(REPLAY_GAIN_INCLUDE_DIR replaygain/gain_analysis.h
     2        /usr/include
     3        /usr/local/include
     4        ${libmpc_SOURCE_DIR}/../libreplaygain/include
     5)
     6
     7FIND_LIBRARY(REPLAY_GAIN_LIBRARY NAMES replaygain replaygain_static PATHS
     8        /usr/lib
     9        /usr/local/lib
     10        ${libmpc_SOURCE_DIR}/../libreplaygain/bin/src/release
     11)
     12
    113include_directories(${libmpc_SOURCE_DIR}/include)
     14include_directories(${REPLAY_GAIN_INCLUDE_DIR})
    215
    3 include_directories(${libmpc_SOURCE_DIR}/libreplaygain)
    4 link_directories(${libmpc_BINARY_DIR}/libreplaygain)
    5 
    6 include_directories(${libmpc_SOURCE_DIR}/libmpcdec)
    716link_directories(${libmpc_BINARY_DIR}/libmpcdec)
    817
    918add_executable(mpcgain mpcgain.c)
    1019
    11 target_link_libraries(mpcgain replaygain_static)
     20target_link_libraries(mpcgain ${REPLAY_GAIN_LIBRARY})
    1221target_link_libraries(mpcgain mpcdec_static)
    1322
Note: See TracChangeset for help on using the changeset viewer.