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

CMakeLists.txt update to build replaygain using libreplaygain

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.