mirror of
https://github.com/reactos/reactos.git
synced 2025-02-23 00:45:24 +00:00

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
24 lines
555 B
CMake
24 lines
555 B
CMake
|
|
|
|
|
|
add_definitions(-D__WINESRC__)
|
|
add_definitions(-D_DLL -D__USE_CRTIMP)
|
|
add_definitions(-D_WINE)
|
|
|
|
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
|
|
|
|
spec2def(mciwave ${CMAKE_CURRENT_SOURCE_DIR}/mciwave.spec ${CMAKE_CURRENT_BINARY_DIR}/mciwave.def)
|
|
|
|
add_library(mciwave SHARED mciwave.c)
|
|
|
|
set_target_properties(mciwave PROPERTIES LINK_FLAGS "-Wl,-entry,0")
|
|
|
|
target_link_libraries(mciwave
|
|
${CMAKE_CURRENT_BINARY_DIR}/mciwave.def
|
|
wine
|
|
-lwinmm
|
|
mingw_common
|
|
-luser32
|
|
-lmsvcrt)
|
|
|
|
add_dependencies(mciwave mciwave_def psdk)
|