[CMAKE]
[reactos.git] / dll / win32 / mciwave / CMakeLists.txt
1
2 set(CMAKE_C_CREATE_SHARED_LIBRARY "<CMAKE_C_COMPILER> <CMAKE_SHARED_LIBRARY_C_FLAGS> <LINK_FLAGS> <CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS> -o <TARGET> <OBJECTS> <LINK_LIBRARIES> -L${REACTOS_BINARY_DIR}/lib/3rdparty/mingw")
3
4 add_definitions(-D__WINESRC__)
5 add_definitions(-D_DLL -D__USE_CRTIMP)
6 add_definitions(-D_WINE)
7
8 include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
9
10 spec2def(mciwave ${CMAKE_CURRENT_SOURCE_DIR}/mciwave.spec ${CMAKE_CURRENT_BINARY_DIR}/mciwave.def)
11
12 add_library(mciwave SHARED mciwave.c)
13
14 set_target_properties(mciwave PROPERTIES LINK_FLAGS "-Wl,-entry,0")
15
16 target_link_libraries(mciwave
17 ${CMAKE_CURRENT_BINARY_DIR}/mciwave.def
18 wine
19 -lwinmm
20 mingw_common
21 ${REACTOS_SOURCE_DIR}/dll/win32/user32/libuser32.a
22 ${REACTOS_SOURCE_DIR}/dll/win32/msvcrt/libmsvcrt.a)
23
24 add_dependencies(mciwave mciwave_def psdk)