[SHELL32_APITEST] Disable exceptions in atl when compiling without exceptions
[reactos.git] / modules / rostests / apitests / shell32 / CMakeLists.txt
1
2 add_definitions(
3 -D_ATL_NO_EXCEPTIONS)
4
5 set_cpp(WITH_RUNTIME)
6
7 spec2def(shell32_apitest.exe shell32_apitest.spec)
8
9 include_directories(${REACTOS_SOURCE_DIR}/sdk/lib/atl)
10
11 list(APPEND SOURCE
12 AddCommas.cpp
13 CFSFolder.cpp
14 CMyComputer.cpp
15 CShellDesktop.cpp
16 CShellLink.cpp
17 CUserNotification.cpp
18 Control_RunDLLW.cpp
19 IShellFolderViewCB.cpp
20 OpenAs_RunDLL.cpp
21 PathResolve.cpp
22 SHCreateFileExtractIconW.cpp
23 SHParseDisplayName.cpp
24 ShellExecCmdLine.cpp
25 ShellExecuteEx.cpp
26 ShellState.cpp
27 menu.cpp
28 shelltest.cpp
29 shelltest.h)
30
31 add_executable(shell32_apitest
32 ${SOURCE}
33 testlist.c
34 resource.rc
35 ${CMAKE_CURRENT_BINARY_DIR}/shell32_apitest.def)
36
37 target_link_libraries(shell32_apitest wine uuid ${PSEH_LIB})
38 set_module_type(shell32_apitest win32cui)
39 add_importlibs(shell32_apitest user32 gdi32 shell32 ole32 oleaut32 advapi32 shlwapi msvcrt kernel32 ntdll)
40 add_pch(shell32_apitest shelltest.h SOURCE)
41 add_rostests_file(TARGET shell32_apitest)