1 2add_definitions( 3 -DOPT_I386 4 -DREAL_IS_FLOAT 5 -DNOXFERMEM 6 -DHAVE_CONFIG_H 7 -DEOVERFLOW=75 8 -Dstrcasecmp=_stricmp 9 -Dstrncasecmp=_strnicmp 10 -D_DLL -D__USE_CRTIMP 11 -D_CRT_NO_POSIX_ERROR_CODES) 12 13include_directories(BEFORE ${REACTOS_SOURCE_DIR}/sdk/include/reactos/libs/libmpg123) 14 15list(APPEND SOURCE 16 compat/compat.c 17 compat/compat_str.c 18 dct64.c 19 dct64_i386.c 20 equalizer.c 21 feature.c 22 format.c 23 frame.c 24 icy.c 25 icy2utf8.c 26 id3.c 27 index.c 28 layer1.c 29 layer2.c 30 layer3.c 31 libmpg123.c 32 ntom.c 33 parse.c 34 readers.c 35 stringbuf.c 36 synth.c 37 synth_8bit.c 38 synth_real.c 39 synth_s32.c 40 tabinit.c) 41 42list(APPEND PCH_SKIP_SOURCE 43 optimize.c) 44 45add_library(libmpg123 46 ${SOURCE} 47 ${PCH_SKIP_SOURCE}) 48 49target_link_libraries(libmpg123 oldnames) 50add_dependencies(libmpg123 psdk) 51add_pch(libmpg123 precomp.h "${PCH_SKIP_SOURCE}") 52