xref: /reactos/dll/win32/framedyn/CMakeLists.txt (revision c2c66aff)
1
2set_cpp(WITH_RUNTIME WITH_EXCEPTIONS)
3spec2def(framedyn.dll framedyn.spec ADD_IMPORTLIB)
4
5list(APPEND SOURCE
6    main.c
7    chstring.cpp
8    provider.cpp
9    ${CMAKE_CURRENT_BINARY_DIR}/framedyn.def)
10
11if(MSVC)
12    add_compile_flags("/Zc:wchar_t-")
13endif()
14
15add_library(framedyn SHARED ${SOURCE})
16set_module_type(framedyn win32dll UNICODE)
17add_importlibs(framedyn oleaut32 msvcrt kernel32 ntdll)
18add_cd_file(TARGET framedyn DESTINATION reactos/system32/wbem FOR all)
19
20if(NOT MSVC)
21    add_asm_files(framedynex_asm alias_gcc.s)
22    add_library(framedynex ${framedynex_asm})
23    set_target_properties(framedynex PROPERTIES LINKER_LANGUAGE ASM)
24endif()
25