diff --git a/reactos/base/applications/cacls/CMakeLists.txt b/reactos/base/applications/cacls/CMakeLists.txt index 0378017b753..b1fac988e48 100644 --- a/reactos/base/applications/cacls/CMakeLists.txt +++ b/reactos/base/applications/cacls/CMakeLists.txt @@ -6,8 +6,6 @@ list(APPEND SOURCE cacls.c cacls.rc) add_executable(cacls ${SOURCE}) -add_pch(cacls precomp.h) - set_module_type(cacls win32cui) add_importlibs(cacls advapi32 user32 shell32 msvcrt kernel32) add_cd_file(TARGET cacls DESTINATION reactos/system32 FOR all) diff --git a/reactos/base/applications/calc/CMakeLists.txt b/reactos/base/applications/calc/CMakeLists.txt index 3e1372e0752..9e28304922d 100644 --- a/reactos/base/applications/calc/CMakeLists.txt +++ b/reactos/base/applications/calc/CMakeLists.txt @@ -18,5 +18,5 @@ add_importlibs(calc advapi32 user32 gdi32 msvcrt kernel32) if(MSVC) add_importlibs(calc ntdll) endif() - +add_pch(calc calc.h) add_cd_file(TARGET calc DESTINATION reactos/system32 FOR all) diff --git a/reactos/base/applications/charmap/CMakeLists.txt b/reactos/base/applications/charmap/CMakeLists.txt index 902952cb935..3e5d1bc4ebf 100644 --- a/reactos/base/applications/charmap/CMakeLists.txt +++ b/reactos/base/applications/charmap/CMakeLists.txt @@ -11,10 +11,10 @@ list(APPEND SOURCE add_executable(charmap ${SOURCE}) -add_pch(charmap precomp.h) - set_module_type(charmap win32gui) add_importlibs(charmap msvcrt user32 gdi32 comctl32 kernel32) +add_pch(charmap precomp.h) + add_cd_file(TARGET charmap DESTINATION reactos/system32 FOR all) diff --git a/reactos/base/applications/logoff/CMakeLists.txt b/reactos/base/applications/logoff/CMakeLists.txt index cb7bd231e24..399db9f7a0a 100644 --- a/reactos/base/applications/logoff/CMakeLists.txt +++ b/reactos/base/applications/logoff/CMakeLists.txt @@ -6,8 +6,7 @@ list(APPEND SOURCE add_executable(logoff ${SOURCE}) -add_pch(logoff precomp.h) - set_module_type(logoff win32cui) add_importlibs(logoff advapi32 user32 msvcrt kernel32) +add_pch(logoff precomp.h) add_cd_file(TARGET logoff DESTINATION reactos/system32 FOR all) diff --git a/reactos/base/applications/mscutils/servman/CMakeLists.txt b/reactos/base/applications/mscutils/servman/CMakeLists.txt index 5836399d331..2a7bd6b0467 100644 --- a/reactos/base/applications/mscutils/servman/CMakeLists.txt +++ b/reactos/base/applications/mscutils/servman/CMakeLists.txt @@ -26,10 +26,10 @@ list(APPEND SOURCE add_executable(servman ${SOURCE}) -add_pch(servman precomp.h) - set_module_type(servman win32gui) add_importlibs(servman user32 gdi32 advapi32 version comctl32 shell32 comdlg32 msvcrt kernel32) +add_pch(servman precomp.h) + add_cd_file(TARGET servman DESTINATION reactos/system32 FOR all) diff --git a/reactos/base/applications/mstsc/CMakeLists.txt b/reactos/base/applications/mstsc/CMakeLists.txt index 06033650ed1..ef0eb892b81 100644 --- a/reactos/base/applications/mstsc/CMakeLists.txt +++ b/reactos/base/applications/mstsc/CMakeLists.txt @@ -25,10 +25,10 @@ list(APPEND SOURCE add_executable(mstsc ${SOURCE}) -add_pch(mstsc precomp.h) - set_module_type(mstsc win32gui) add_importlibs(mstsc user32 gdi32 comctl32 ws2_32 advapi32 shell32 ole32 comdlg32 msvcrt kernel32) +add_pch(mstsc precomp.h) + add_cd_file(TARGET mstsc DESTINATION reactos/system32 FOR all) diff --git a/reactos/base/applications/regedit/CMakeLists.txt b/reactos/base/applications/regedit/CMakeLists.txt index f79bf4f1490..9b6ae4d6cd8 100644 --- a/reactos/base/applications/regedit/CMakeLists.txt +++ b/reactos/base/applications/regedit/CMakeLists.txt @@ -22,14 +22,14 @@ list(APPEND SOURCE add_executable(regedit ${SOURCE}) -add_pch(regedit regedit.h) - set_module_type(regedit win32gui) target_link_libraries(regedit uuid) add_importlibs(regedit user32 gdi32 advapi32 ole32 shell32 comctl32 comdlg32 shlwapi msvcrt kernel32) +add_pch(regedit regedit.h) + #add_subdirectory(clb) add_cd_file(TARGET regedit DESTINATION reactos FOR all) diff --git a/reactos/base/applications/sc/CMakeLists.txt b/reactos/base/applications/sc/CMakeLists.txt index d16c088c933..43576854e9d 100644 --- a/reactos/base/applications/sc/CMakeLists.txt +++ b/reactos/base/applications/sc/CMakeLists.txt @@ -15,8 +15,7 @@ list(APPEND SOURCE add_executable(sc ${SOURCE}) -add_pch(sc sc.h) - set_module_type(sc win32cui) add_importlibs(sc advapi32 msvcrt kernel32) +add_pch(sc sc.h) add_cd_file(TARGET sc DESTINATION reactos/system32 FOR all) diff --git a/reactos/base/applications/shutdown/CMakeLists.txt b/reactos/base/applications/shutdown/CMakeLists.txt index 2401f8cf9ce..08765772e6f 100644 --- a/reactos/base/applications/shutdown/CMakeLists.txt +++ b/reactos/base/applications/shutdown/CMakeLists.txt @@ -6,8 +6,7 @@ list(APPEND SOURCE add_executable(shutdown ${SOURCE}) -add_pch(shutdown precomp.h) - set_module_type(shutdown win32cui) add_importlibs(shutdown advapi32 user32 msvcrt kernel32) +add_pch(shutdown precomp.h) add_cd_file(TARGET shutdown DESTINATION reactos/system32 FOR all) diff --git a/reactos/base/applications/sndvol32/CMakeLists.txt b/reactos/base/applications/sndvol32/CMakeLists.txt index 1e5f425efeb..eecfc287762 100644 --- a/reactos/base/applications/sndvol32/CMakeLists.txt +++ b/reactos/base/applications/sndvol32/CMakeLists.txt @@ -10,8 +10,7 @@ list(APPEND SOURCE add_executable(sndvol32 ${SOURCE}) -add_pch(sndvol32 sndvol32.h) - set_module_type(sndvol32 win32gui) add_importlibs(sndvol32 user32 advapi32 gdi32 comctl32 shell32 winmm msvcrt kernel32 ntdll) +add_pch(sndvol32 sndvol32.h) add_cd_file(TARGET sndvol32 DESTINATION reactos/system32 FOR all) diff --git a/reactos/base/services/tcpsvcs/CMakeLists.txt b/reactos/base/services/tcpsvcs/CMakeLists.txt index 695c2e8112b..08a1be6587b 100644 --- a/reactos/base/services/tcpsvcs/CMakeLists.txt +++ b/reactos/base/services/tcpsvcs/CMakeLists.txt @@ -14,9 +14,9 @@ list(APPEND SOURCE add_executable(tcpsvcs ${SOURCE}) -add_pch(tcpsvcs tcpsvcs.h) set_module_type(tcpsvcs win32cui) add_importlibs(tcpsvcs ws2_32 advapi32 msvcrt kernel32 ntdll) +add_pch(tcpsvcs tcpsvcs.h) add_cd_file(TARGET tcpsvcs DESTINATION reactos/system32 FOR all) diff --git a/reactos/base/shell/cmd/CMakeLists.txt b/reactos/base/shell/cmd/CMakeLists.txt index 1242e670843..37cacf55ecb 100644 --- a/reactos/base/shell/cmd/CMakeLists.txt +++ b/reactos/base/shell/cmd/CMakeLists.txt @@ -76,7 +76,7 @@ add_executable(cmd ${SOURCE}) target_link_libraries(cmd wine) -add_pch(cmd precomp.h) set_module_type(cmd win32cui) add_importlibs(cmd advapi32 user32 msvcrt kernel32 ntdll) +add_pch(cmd precomp.h) add_cd_file(TARGET cmd DESTINATION reactos/system32 FOR all) diff --git a/reactos/base/shell/explorer-new/CMakeLists.txt b/reactos/base/shell/explorer-new/CMakeLists.txt index eacd9fe6d51..034e592a031 100644 --- a/reactos/base/shell/explorer-new/CMakeLists.txt +++ b/reactos/base/shell/explorer-new/CMakeLists.txt @@ -22,7 +22,6 @@ add_executable(explorer_new ${SOURCE}) target_link_libraries(explorer_new uuid) -add_pch(explorer_new precomp.h) set_module_type(explorer_new win32gui) add_importlibs(explorer_new advapi32 @@ -37,5 +36,6 @@ add_importlibs(explorer_new msvcrt kernel32 ntdll) +add_pch(explorer_new precomp.h) add_cd_file(TARGET explorer_new DESTINATION reactos FOR all) diff --git a/reactos/base/system/winlogon/CMakeLists.txt b/reactos/base/system/winlogon/CMakeLists.txt index e83182d106f..99bee9d970e 100644 --- a/reactos/base/system/winlogon/CMakeLists.txt +++ b/reactos/base/system/winlogon/CMakeLists.txt @@ -12,8 +12,7 @@ add_executable(winlogon ${SOURCE}) target_link_libraries(winlogon wine) -add_pch(winlogon winlogon.h) - set_module_type(winlogon win32gui) add_importlibs(winlogon user32 advapi32 userenv secur32 msvcrt kernel32 ntdll) +add_pch(winlogon winlogon.h) add_cd_file(TARGET winlogon DESTINATION reactos/system32 FOR all) diff --git a/reactos/dll/win32/authz/CMakeLists.txt b/reactos/dll/win32/authz/CMakeLists.txt index 9a677f218ad..3e5f6573b82 100644 --- a/reactos/dll/win32/authz/CMakeLists.txt +++ b/reactos/dll/win32/authz/CMakeLists.txt @@ -15,7 +15,7 @@ add_library(authz SHARED ${SOURCE}) set_module_type(authz win32dll) -add_pch(authz precomp.h) add_importlibs(authz advapi32 msvcrt kernel32 ntdll) +add_pch(authz precomp.h) add_cd_file(TARGET authz DESTINATION reactos/system32 FOR all) diff --git a/reactos/dll/win32/msafd/CMakeLists.txt b/reactos/dll/win32/msafd/CMakeLists.txt index 0b90e582447..30b0544dc5b 100644 --- a/reactos/dll/win32/msafd/CMakeLists.txt +++ b/reactos/dll/win32/msafd/CMakeLists.txt @@ -20,7 +20,6 @@ add_library(msafd SHARED ${SOURCE}) set_module_type(msafd win32dll) -add_pch(msafd msafd.h) - add_importlibs(msafd advapi32 msvcrt kernel32 ntdll) +add_pch(msafd msafd.h) add_cd_file(TARGET msafd DESTINATION reactos/system32 FOR all) diff --git a/reactos/dll/win32/shell32/CMakeLists.txt b/reactos/dll/win32/shell32/CMakeLists.txt index a369e00e6ef..980d4777b8f 100644 --- a/reactos/dll/win32/shell32/CMakeLists.txt +++ b/reactos/dll/win32/shell32/CMakeLists.txt @@ -77,8 +77,6 @@ list(APPEND SOURCE add_library(shell32 SHARED ${SOURCE}) -add_pch(shell32 precomp.h) - set_module_type(shell32 win32dll) target_link_libraries(shell32 @@ -101,6 +99,8 @@ add_importlibs(shell32 kernel32 msvcrt ntdll) + +add_pch(shell32 precomp.h) add_cd_file(TARGET shell32 DESTINATION reactos/system32 FOR all) add_importlib_target(shell32.spec) diff --git a/reactos/dll/win32/user32/CMakeLists.txt b/reactos/dll/win32/user32/CMakeLists.txt index 9ce008ae14e..d40679495f9 100644 --- a/reactos/dll/win32/user32/CMakeLists.txt +++ b/reactos/dll/win32/user32/CMakeLists.txt @@ -75,7 +75,7 @@ target_link_libraries(user32 win32ksys ${PSEH_LIB}) -add_pch(user32 include/user32.h) add_importlibs(user32 gdi32 advapi32 imm32 msvcrt kernel32 ntdll) +add_pch(user32 include/user32.h) add_cd_file(TARGET user32 DESTINATION reactos/system32 FOR all) add_importlib_target(user32.spec)