[CMAKE]
[reactos.git] / dll / win32 / mciseq / 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
6 include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
7
8 spec2def(mciseq ${CMAKE_CURRENT_SOURCE_DIR}/mciseq.spec ${CMAKE_CURRENT_BINARY_DIR}/mciseq.def)
9
10 add_library(mciseq SHARED mcimidi.c)
11
12 set_target_properties(mciseq PROPERTIES LINK_FLAGS "-Wl,-entry,0")
13
14 target_link_libraries(mciseq
15 ${CMAKE_CURRENT_BINARY_DIR}/mciseq.def
16 wine
17 -lwinmm
18 mingw_common
19 ${REACTOS_SOURCE_DIR}/dll/win32/user32/libuser32.a)
20
21 add_dependencies(mciseq mciseq_def psdk)