[ATL_APITEST] Add a PCH.

This commit is contained in:
Amine Khaldi 2017-12-21 13:31:24 +01:00
parent a59d4674de
commit 823270e608
5 changed files with 22 additions and 5 deletions

View file

@ -7,7 +7,7 @@
#include <apitest.h>
#include <atlbase.h>
#include <atlcom.h>
#include "resource.h"
#define verify_str (winetest_set_location(__FILE__, __LINE__), 0) ? (void)0 : verify_str_imp

View file

@ -7,7 +7,6 @@
#include <apitest.h>
#include <atlbase.h>
#include <atlcom.h>
static PDWORD test_Alloc(DWORD value)
{

View file

@ -11,7 +11,6 @@
#include <apitest.h>
#include <atlbase.h>
#include <atlcom.h>
void expect_bool_imp(const CComVariant& ccv, bool value)
{

View file

@ -4,20 +4,25 @@ set_cpp(WITH_RUNTIME WITH_EXCEPTIONS)
include_directories(${REACTOS_SOURCE_DIR}/sdk/lib/atl)
add_executable(atl_apitest
list(APPEND SOURCE
atltypes.cpp
CComBSTR.cpp
CComHeapPtr.cpp
CComVariant.cpp
CImage.cpp
CRegKey.cpp
CSimpleArray.cpp
CSimpleMap.cpp
CString.cpp
precomp.h)
add_executable(atl_apitest
${SOURCE}
CComVariant.cpp
testlist.c
atl_apitest.rc)
target_link_libraries(atl_apitest wine atlnew uuid)
set_module_type(atl_apitest win32cui)
add_importlibs(atl_apitest rpcrt4 ole32 oleaut32 msimg32 gdi32 advapi32 user32 msvcrt kernel32 ntdll)
add_pch(atl_apitest precomp.h SOURCE)
add_rostests_file(TARGET atl_apitest)

View file

@ -0,0 +1,14 @@
#ifndef _ATL_APITEST_PRECOMP_H_
#define _ATL_APITEST_PRECOMP_H_
#define WIN32_NO_STATUS
#define _INC_WINDOWS
#define COM_NO_WINDOWS_H
#include <apitest.h>
#include <atlbase.h>
#include <atlsimpcoll.h>
#include "resource.h"
#endif /* _ATL_APITEST_PRECOMP_H_ */