mirror of
https://github.com/reactos/reactos.git
synced 2025-01-12 01:00:06 +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
28 lines
580 B
CMake
28 lines
580 B
CMake
|
|
|
|
|
|
add_definitions(-D__WINESRC__)
|
|
|
|
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
|
|
|
|
spec2def(mciavi32 ${CMAKE_CURRENT_SOURCE_DIR}/mciavi32.spec ${CMAKE_CURRENT_BINARY_DIR}/mciavi32.def)
|
|
|
|
add_library(mciavi32 SHARED
|
|
info.c
|
|
mciavi.c
|
|
mmoutput.c
|
|
wnd.c
|
|
mciavi_res.rc)
|
|
|
|
set_target_properties(mciavi32 PROPERTIES LINK_FLAGS "-Wl,-entry,_DllMain@12")
|
|
|
|
target_link_libraries(mciavi32
|
|
${CMAKE_CURRENT_BINARY_DIR}/mciavi32.def
|
|
wine
|
|
-lmsvfw32
|
|
-lwinmm
|
|
mingw_common
|
|
-luser32
|
|
-lgdi32)
|
|
|
|
add_dependencies(mciavi32 mciavi32_def psdk)
|