Changeset 105 for mppenc/trunk/src


Ignore:
Timestamp:
11/08/06 20:53:41 (18 years ago)
Author:
zorg
Message:

Fix cmake compilation on win32 (both for msvc & mingw/cygwin). It's still advised to use custom msvc projects with msvc compilers though

Location:
mppenc/trunk/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • mppenc/trunk/src/CMakeLists.txt

    r100 r105  
    11add_definitions(-DMPP_ENCODER -DFAST_MATH -DCVD_FASTLOG)
    22add_executable(mppenc analy_filter encode_sv7 huffsv7 profile stderr winmsg ans fastmath keyboard psy tags bitstream fft4g mppenc psy_tab tools cvd fft_routines pipeopen quant wave_in)
     3
     4if(WIN32)
     5target_link_libraries(mppenc winmm)
     6endif(WIN32)
     7
     8if(NOT MSVC)
    39target_link_libraries(mppenc m)
     10endif(NOT MSVC)
     11
    412if(CMAKE_SYSTEM_NAME STREQUAL OpenBSD)
    513target_link_libraries(mppenc ossaudio)
    614endif(CMAKE_SYSTEM_NAME STREQUAL OpenBSD)
     15
    716install(TARGETS mppenc RUNTIME DESTINATION bin)
  • mppenc/trunk/src/mppenc.h

    r97 r105  
    2020#ifndef MPPENC_MPPENC_H
    2121#define MPPENC_MPPENC_H
    22 
    23 #ifdef _WIN32
    24 # define CVD_FASTLOG
    25 # define FAST_MATH
    26 #endif
    2722
    2823#include "mppdec.h"
Note: See TracChangeset for help on using the changeset viewer.