[CMAKE]
[reactos.git] / dll / win32 / mmdrv / 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>")
3
4 add_definitions(-DNDEBUG)
5 add_definitions(-DUNICODE -D_UNICODE)
6
7 spec2def(mmdrv ${CMAKE_CURRENT_SOURCE_DIR}/mmdrv.spec ${CMAKE_CURRENT_BINARY_DIR}/mmdrv.def)
8
9 add_library(mmdrv SHARED
10 entry.c
11 mme.c
12 kernel.c
13 session.c
14 common.c
15 wave.c
16 wave_io.c)
17
18 set_target_properties(mmdrv PROPERTIES LINK_FLAGS "-Wl,-entry,0")
19
20 target_link_libraries(mmdrv
21 ${CMAKE_CURRENT_BINARY_DIR}/mmdrv.def
22 -lwinmm
23 ${REACTOS_SOURCE_DIR}/dll/win32/user32/libuser32.a
24 ${REACTOS_SOURCE_DIR}/dll/win32/kernel32/libkernel32.a)
25
26 add_dependencies(mmdrv mmdrv_def psdk)