Ignore:
Timestamp:
11/08/06 20:53:41 (17 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

File:
1 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)
Note: See TracChangeset for help on using the changeset viewer.