[MSGINA] Disable exceptions in atl when compiling without exceptions
[reactos.git] / dll / win32 / msgina / CMakeLists.txt
1
2 set_cpp(WITH_RUNTIME)
3
4 add_definitions(
5 -D_ATL_NO_EXCEPTIONS)
6
7 include_directories(
8 ${REACTOS_SOURCE_DIR}/sdk/lib/atl
9 ${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine)
10
11 spec2def(msgina.dll msgina.spec)
12
13 list(APPEND C_SOURCE
14 gui.c
15 lsa.c
16 msgina.c
17 shutdown.c
18 stubs.c
19 tui.c
20 msgina.h)
21
22 list(APPEND CPP_SOURCE
23 dimmedwindow.cpp)
24
25 add_library(msgina MODULE
26 ${C_SOURCE}
27 ${CPP_SOURCE}
28 msgina.rc
29 ${CMAKE_CURRENT_BINARY_DIR}/msgina_stubs.c
30 ${CMAKE_CURRENT_BINARY_DIR}/msgina.def)
31
32 set_module_type(msgina win32dll UNICODE)
33 target_link_libraries(msgina wine uuid ${PSEH_LIB})
34 add_delay_importlibs(msgina secur32)
35 add_importlibs(msgina advapi32 user32 gdi32 powrprof userenv msvcrt kernel32 ntdll)
36 add_pch(msgina msgina.h CPP_SOURCE)
37 add_cd_file(TARGET msgina DESTINATION reactos/system32 FOR all)