[ROSAUTOTEST]
authorAmine Khaldi <amine.khaldi@reactos.org>
Mon, 10 Feb 2014 17:05:15 +0000 (17:05 +0000)
committerAmine Khaldi <amine.khaldi@reactos.org>
Mon, 10 Feb 2014 17:05:15 +0000 (17:05 +0000)
* Prepare the CMake script for PCH.
* Add header guards to the main header.
CORE-7716

svn path=/trunk/; revision=62102

rostests/rosautotest/CMakeLists.txt
rostests/rosautotest/precomp.h

index f1e1566..d4a4b37 100644 (file)
@@ -16,12 +16,13 @@ list(APPEND SOURCE
     CWineTest.cpp
     main.cpp
     shutdown.cpp
     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_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)
 
 add_cd_file(TARGET rosautotest DESTINATION reactos/system32 FOR all)
index 34bd7ee..adb25fb 100644 (file)
@@ -1,3 +1,6 @@
+#ifndef _ROSAUTOTEST_H_
+#define _ROSAUTOTEST_H_
+
 /* General includes */
 #include <iostream>
 #include <memory>
 /* General includes */
 #include <iostream>
 #include <memory>
@@ -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);
 string StringOut(const string& String, bool forcePrint = true);
 string UnicodeToAscii(PCWSTR UnicodeString);
 string UnicodeToAscii(const wstring& UnicodeString);
+
+#endif /* _ROSAUTOTEST_H_ */