70515e4da1e6d563f94aae0a6d9ee3971bd6cb18
[reactos.git] / reactos / dll / win32 / framedyn / CMakeLists.txt
1
2 set_cpp(WITH_RUNTIME)
3 list(APPEND SOURCE main.c chstring.cpp)
4 add_library(framedyn SHARED ${SOURCE})
5 set_module_type(framedyn win32dll UNICODE)
6 add_importlibs(framedyn oleaut32 msvcrt kernel32 ntdll)
7
8 if(NOT MSVC)
9 # FIXME: http://www.cmake.org/Bug/view.php?id=12998
10 #add_target_compile_flags(framedyn "-fexceptions -Wno-deprecated-declarations")
11 set_source_files_properties(${SOURCE} PROPERTIES COMPILE_FLAGS "-fexceptions -Wno-deprecated-declarations")
12 spec2def(framedyn.dll framedyn_gcc.spec ADD_IMPORTLIB)
13 list(APPEND SOURCE ${CMAKE_CURRENT_BINARY_DIR}/framedyn.def)
14 endif()
15
16 add_cd_file(TARGET framedyn DESTINATION reactos/system32/wbem FOR all)