[CMAKE]
[reactos.git] / dll / win32 / winemp3.acm / CMakeLists.txt
1
2 add_definitions(-D_DLL -D__USE_CRTIMP)
3 add_definitions(-D__WINESRC__ -DWIN32)
4
5 include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
6 include_directories(${REACTOS_SOURCE_DIR}/include/reactos/libs/libmpg123)
7
8 add_custom_command(
9 OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/winemp3.acm.def
10 COMMAND native-winebuild -o ${CMAKE_CURRENT_BINARY_DIR}/winemp3.acm.def --def -E ${CMAKE_CURRENT_SOURCE_DIR}/winemp3.acm.spec --filename winemp3.acm
11 DEPENDS native-winebuild)
12 set_source_files_properties(${CMAKE_CURRENT_BINARY_DIR}/winemp3.acm.def PROPERTIES GENERATED TRUE)
13 add_custom_target(winemp3.acm_def ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/winemp3.acm.def)
14
15 add_library(winemp3.acm SHARED mpegl3.c)
16
17 set_entrypoint(winemp3.acm 0)
18 set_target_properties(winemp3.acm PROPERTIES SUFFIX "")
19
20 target_link_libraries(winemp3.acm
21 ${CMAKE_CURRENT_BINARY_DIR}/winemp3.acm.def
22 mingw_common
23 wine
24 libmpg123)
25
26 add_importlibs(winemp3.acm
27 msvcrt
28 winmm
29 user32
30 kernel32
31 ntdll)
32
33 add_dependencies(winemp3.acm psdk)