mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 09:25:10 +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
30 lines
617 B
CMake
30 lines
617 B
CMake
|
|
|
|
|
|
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
|
|
|
|
add_definitions(-D__WINESRC__)
|
|
add_definitions(-D_WINE)
|
|
|
|
spec2def(msvfw32 ${CMAKE_CURRENT_SOURCE_DIR}/msvfw32.spec ${CMAKE_CURRENT_BINARY_DIR}/msvfw32.def)
|
|
|
|
add_library(msvfw32 SHARED
|
|
mciwnd.c
|
|
msvideo_main.c
|
|
drawdib.c
|
|
rsrc.rc)
|
|
|
|
set_target_properties(msvfw32 PROPERTIES LINK_FLAGS "-Wl,-entry,_DllMain@12")
|
|
|
|
target_link_libraries(msvfw32
|
|
${CMAKE_CURRENT_BINARY_DIR}/msvfw32.def
|
|
wine
|
|
-lwinmm
|
|
-lversion
|
|
-lcomctl32
|
|
-luser32
|
|
-lgdi32
|
|
-ladvapi32
|
|
mingw_common)
|
|
|
|
add_dependencies(msvfw32 msvfw32_def psdk)
|