[NTOBJSHEX] Improve the existing PCH and make use of it.
[reactos.git] / dll / shellext / ntobjshex / CMakeLists.txt
index 840a3f4..9d2c76e 100644 (file)
@@ -17,12 +17,16 @@ spec2def(ntobjshex.dll ntobjshex.spec)
 file(GLOB_RECURSE ntobjshex_rc_deps resources/*.*)
 add_rc_deps(ntobjshex.rc ${ntobjshex_rc_deps})
 
-add_library(ntobjshex SHARED
+list(APPEND SOURCE
     ntobjenum.cpp
     ntobjfolder.cpp
     ntobjshex.cpp
-    ntobjshex.rc
     regfolder.cpp
+    precomp.h)
+
+add_library(ntobjshex SHARED
+    ${SOURCE}
+    ntobjshex.rc
     ${CMAKE_CURRENT_BINARY_DIR}/ntobjshex.def)
 
 set_module_type(ntobjshex win32dll UNICODE)
@@ -42,4 +46,5 @@ add_importlibs(ntobjshex
     kernel32
     ntdll)
 
+add_pch(ntobjshex precomp.h SOURCE)
 add_cd_file(TARGET ntobjshex DESTINATION reactos/system32 FOR all)