From: Amine Khaldi Date: Mon, 10 Feb 2014 17:05:15 +0000 (+0000) Subject: [ROSAUTOTEST] X-Git-Tag: ReactOS-0.3.16-CLT2014~208 X-Git-Url: https://git.reactos.org/?p=reactos.git;a=commitdiff_plain;h=1c95bdd14c3832e37d11cb8eaf9e5748945ca2f9 [ROSAUTOTEST] * Prepare the CMake script for PCH. * Add header guards to the main header. CORE-7716 svn path=/trunk/; revision=62102 --- diff --git a/rostests/rosautotest/CMakeLists.txt b/rostests/rosautotest/CMakeLists.txt index f1e15669dc2..d4a4b370271 100644 --- a/rostests/rosautotest/CMakeLists.txt +++ b/rostests/rosautotest/CMakeLists.txt @@ -16,12 +16,13 @@ list(APPEND SOURCE CWineTest.cpp main.cpp shutdown.cpp - tools.cpp) + tools.cpp + precomp.h) add_executable(rosautotest ${SOURCE}) set_module_type(rosautotest win32cui UNICODE) add_importlibs(rosautotest advapi32 shell32 user32 wininet msvcrt kernel32 ntdll) -add_pch(rosautotest precomp.h) +add_pch(rosautotest precomp.h SOURCE) add_cd_file(TARGET rosautotest DESTINATION reactos/system32 FOR all) diff --git a/rostests/rosautotest/precomp.h b/rostests/rosautotest/precomp.h index 34bd7eee528..adb25fbc2fd 100644 --- a/rostests/rosautotest/precomp.h +++ b/rostests/rosautotest/precomp.h @@ -1,3 +1,6 @@ +#ifndef _ROSAUTOTEST_H_ +#define _ROSAUTOTEST_H_ + /* General includes */ #include #include @@ -57,3 +60,5 @@ bool IsNumber(const char* Input); string StringOut(const string& String, bool forcePrint = true); string UnicodeToAscii(PCWSTR UnicodeString); string UnicodeToAscii(const wstring& UnicodeString); + +#endif /* _ROSAUTOTEST_H_ */