mirror of
https://github.com/reactos/reactos.git
synced 2024-08-31 07:38:48 +00:00
![Victor Perevertkin](/assets/img/avatar_default.png)
add_target_compile_definitions -> target_compile_definitions add_target_compile_flags -> target_compile_options add_target_include_directories -> target_include_directories
22 lines
547 B
CMake
22 lines
547 B
CMake
|
|
add_definitions(
|
|
-D__WINESRC__
|
|
-D_WINE)
|
|
|
|
include_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine)
|
|
spec2def(mciwave.dll mciwave.spec)
|
|
|
|
list(APPEND SOURCE
|
|
mciwave.c
|
|
${CMAKE_CURRENT_BINARY_DIR}/mciwave.def)
|
|
|
|
add_library(mciwave MODULE ${SOURCE})
|
|
set_module_type(mciwave win32dll)
|
|
target_link_libraries(mciwave wine)
|
|
add_importlibs(mciwave user32 winmm msvcrt kernel32 ntdll)
|
|
add_cd_file(TARGET mciwave DESTINATION reactos/system32 FOR all)
|
|
|
|
if(NOT MSVC)
|
|
target_compile_options(mciwave PRIVATE "-Wno-overflow")
|
|
endif()
|