[SHELLEXTS]
authorAmine Khaldi <amine.khaldi@reactos.org>
Mon, 10 Feb 2014 20:32:25 +0000 (20:32 +0000)
committerAmine Khaldi <amine.khaldi@reactos.org>
Mon, 10 Feb 2014 20:32:25 +0000 (20:32 +0000)
* Prepare the CMake scripts for PCH.
CORE-7716

svn path=/trunk/; revision=62112

reactos/dll/shellext/deskadp/CMakeLists.txt
reactos/dll/shellext/deskmon/CMakeLists.txt
reactos/dll/shellext/fontext/CMakeLists.txt

index 429cb9e..99fa79c 100644 (file)
@@ -4,10 +4,13 @@ spec2def(deskadp.dll deskadp.spec)
 list(APPEND SOURCE
     deskadp.c
     shxiface.c
+    precomp.h)
+
+add_library(deskadp SHARED
+    ${SOURCE}
     deskadp.rc
     ${CMAKE_CURRENT_BINARY_DIR}/deskadp.def)
 
-add_library(deskadp SHARED ${SOURCE})
 set_module_type(deskadp win32dll UNICODE)
 target_link_libraries(deskadp uuid)
 
@@ -20,5 +23,5 @@ add_importlibs(deskadp
     kernel32
     ntdll)
 
-add_pch(deskadp precomp.h)
+add_pch(deskadp precomp.h SOURCE)
 add_cd_file(TARGET deskadp DESTINATION reactos/system32 FOR all)
index e8e4075..c6b216f 100644 (file)
@@ -4,10 +4,13 @@ spec2def(deskmon.dll deskmon.spec)
 list(APPEND SOURCE
     deskmon.c
     shxiface.c
+    precomp.h)
+
+add_library(deskmon SHARED
+    ${SOURCE}
     deskmon.rc
     ${CMAKE_CURRENT_BINARY_DIR}/deskmon.def)
 
-add_library(deskmon SHARED ${SOURCE})
 set_module_type(deskmon win32dll UNICODE)
 target_link_libraries(deskmon uuid)
 
@@ -20,5 +23,5 @@ add_importlibs(deskmon
     kernel32
     ntdll)
 
-add_pch(deskmon precomp.h)
+add_pch(deskmon precomp.h SOURCE)
 add_cd_file(TARGET deskmon DESTINATION reactos/system32 FOR all)
index e17d4d8..78d88d3 100644 (file)
@@ -1,9 +1,13 @@
 
 spec2def(fontext.dll fontext.spec)
 
-add_library(fontext SHARED
+list(APPEND SOURCE
     fontext.c
     regsvr.c
+    fontext.h)
+
+add_library(fontext SHARED
+    ${SOURCE}
     fontext.rc
     ${CMAKE_CURRENT_BINARY_DIR}/fontext.def)
 
@@ -22,5 +26,5 @@ add_importlibs(fontext
     kernel32
     ntdll)
 
-add_pch(fontext fontext.h)
+add_pch(fontext fontext.h SOURCE)
 add_cd_file(TARGET fontext DESTINATION reactos/system32 FOR all)