mirror of
https://github.com/reactos/reactos.git
synced 2024-11-24 20:13:31 +08:00
ed61512236
in favor of add_compile_options and the like with generator expressions Also take this as an opportunity to remove the C++11 standard hack, GCC 8 now defaults to C++14
25 lines
655 B
CMake
25 lines
655 B
CMake
spec2def(mydocs.dll mydocs.spec)
|
|
|
|
add_definitions(
|
|
-D_WINE)
|
|
|
|
file(GLOB_RECURSE mydocs_rc_deps res/*.*)
|
|
add_rc_deps(mydocs.rc ${mydocs_rc_deps})
|
|
|
|
list(APPEND SOURCE
|
|
CMyDocsDropHandler.cpp
|
|
mydocs.cpp
|
|
precomp.hpp)
|
|
|
|
add_library(mydocs MODULE
|
|
${SOURCE}
|
|
mydocs.rc
|
|
${CMAKE_CURRENT_BINARY_DIR}/mydocs.def)
|
|
|
|
set_module_type(mydocs win32dll UNICODE)
|
|
target_link_libraries(mydocs uuid wine cpprt atl_classes)
|
|
add_delay_importlibs(mydocs ole32 oleaut32)
|
|
add_importlibs(mydocs advapi32 shell32 user32 comctl32 shlwapi msvcrt kernel32 ntdll)
|
|
add_pch(mydocs precomp.hpp SOURCE)
|
|
add_cd_file(TARGET mydocs DESTINATION reactos/system32 FOR all)
|