mirror of
https://github.com/reactos/reactos.git
synced 2025-01-12 09:07:54 +00:00
c702cc0d5a
Generalize CMAKE_C_CREATE_SHARED_LIBRARY and remove per project instances. Thanks to Amine for regexxer tool discovery ;) svn path=/branches/cmake-bringup/; revision=48804
21 lines
469 B
CMake
21 lines
469 B
CMake
|
|
|
|
|
|
add_definitions(-D__WINESRC__)
|
|
|
|
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
|
|
|
|
spec2def(mciseq ${CMAKE_CURRENT_SOURCE_DIR}/mciseq.spec ${CMAKE_CURRENT_BINARY_DIR}/mciseq.def)
|
|
|
|
add_library(mciseq SHARED mcimidi.c)
|
|
|
|
set_target_properties(mciseq PROPERTIES LINK_FLAGS "-Wl,-entry,0")
|
|
|
|
target_link_libraries(mciseq
|
|
${CMAKE_CURRENT_BINARY_DIR}/mciseq.def
|
|
wine
|
|
-lwinmm
|
|
mingw_common
|
|
-luser32)
|
|
|
|
add_dependencies(mciseq mciseq_def psdk)
|