From 43192846769c2125c0bc3f7641ac6d9816fb53cc Mon Sep 17 00:00:00 2001 From: Amine Khaldi Date: Sat, 8 Feb 2014 18:13:52 +0000 Subject: [PATCH] [APPLICATIONS] * Prepare the CMake scripts for PCH. CORE-7716 svn path=/trunk/; revision=62054 --- reactos/base/applications/calc/CMakeLists.txt | 7 ++++--- reactos/base/applications/charmap/CMakeLists.txt | 6 +++--- reactos/base/applications/dxdiag/CMakeLists.txt | 8 ++++---- reactos/base/applications/fontview/CMakeLists.txt | 6 ++++-- .../applications/games/solitaire/CMakeLists.txt | 7 ++++--- .../base/applications/games/spider/CMakeLists.txt | 7 ++++--- .../applications/games/winmine/CMakeLists.txt | 6 ++++-- reactos/base/applications/logoff/CMakeLists.txt | 6 +++--- reactos/base/applications/magnify/CMakeLists.txt | 7 ++++--- reactos/base/applications/mmc/CMakeLists.txt | 6 +++--- reactos/base/applications/msconfig/CMakeLists.txt | 6 +++--- .../applications/mscutils/devmgmt/CMakeLists.txt | 6 +++--- .../applications/mscutils/servman/CMakeLists.txt | 6 +++--- reactos/base/applications/mspaint/CMakeLists.txt | 7 ++++--- reactos/base/applications/mstsc/CMakeLists.txt | 6 +++--- .../applications/network/finger/CMakeLists.txt | 7 ++++--- .../base/applications/network/ftp/CMakeLists.txt | 7 ++++--- .../base/applications/network/net/CMakeLists.txt | 6 +++--- .../applications/network/nslookup/CMakeLists.txt | 7 ++++--- .../applications/network/telnet/CMakeLists.txt | 15 ++++++++------- reactos/base/applications/notepad/CMakeLists.txt | 6 +++--- reactos/base/applications/rapps/CMakeLists.txt | 6 +++--- reactos/base/applications/regedit/CMakeLists.txt | 6 +++--- reactos/base/applications/sc/CMakeLists.txt | 7 +++---- .../screensavers/3dtext/CMakeLists.txt | 7 ++++--- reactos/base/applications/shutdown/CMakeLists.txt | 6 +++--- reactos/base/applications/sndrec32/CMakeLists.txt | 6 ++++-- reactos/base/applications/sndvol32/CMakeLists.txt | 6 +++--- reactos/base/applications/taskmgr/CMakeLists.txt | 6 +++--- reactos/base/applications/winhlp32/CMakeLists.txt | 11 ++++++++--- 30 files changed, 113 insertions(+), 93 deletions(-) diff --git a/reactos/base/applications/calc/CMakeLists.txt b/reactos/base/applications/calc/CMakeLists.txt index d187356c2de..870e6f10fa2 100644 --- a/reactos/base/applications/calc/CMakeLists.txt +++ b/reactos/base/applications/calc/CMakeLists.txt @@ -1,19 +1,20 @@ add_definitions(-DDISABLE_HTMLHELP_SUPPORT=1) -add_executable(calc +list(APPEND SOURCE about.c convert.c function.c rpn.c utl.c winmain.c - resource.rc) + calc.h) +add_executable(calc ${SOURCE} resource.rc) set_module_type(calc win32gui UNICODE) add_importlibs(calc advapi32 user32 gdi32 msvcrt kernel32) if(MSVC) add_importlibs(calc ntdll) endif() -add_pch(calc calc.h) +add_pch(calc calc.h SOURCE) 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 9921e8252e8..8baa1770d4f 100644 --- a/reactos/base/applications/charmap/CMakeLists.txt +++ b/reactos/base/applications/charmap/CMakeLists.txt @@ -5,10 +5,10 @@ list(APPEND SOURCE lrgcell.c map.c settings.c - charmap.rc) + precomp.h) -add_executable(charmap ${SOURCE}) +add_executable(charmap ${SOURCE} charmap.rc) set_module_type(charmap win32gui UNICODE) add_importlibs(charmap advapi32 user32 gdi32 comctl32 msvcrt kernel32) -add_pch(charmap precomp.h) +add_pch(charmap precomp.h SOURCE) add_cd_file(TARGET charmap DESTINATION reactos/system32 FOR all) diff --git a/reactos/base/applications/dxdiag/CMakeLists.txt b/reactos/base/applications/dxdiag/CMakeLists.txt index a9d92d80391..f75b1210c03 100644 --- a/reactos/base/applications/dxdiag/CMakeLists.txt +++ b/reactos/base/applications/dxdiag/CMakeLists.txt @@ -8,16 +8,16 @@ list(APPEND SOURCE network.c help.c dxdiag.c - dxdiag.rc ddtest.c d3dtest.c d3dtest7.c d3dtest8.c - d3dtest9.c) + d3dtest9.c + precomp.h) -add_executable(dxdiag ${SOURCE}) +add_executable(dxdiag ${SOURCE} dxdiag.rc) set_module_type(dxdiag win32gui UNICODE) target_link_libraries(dxdiag dxguid) add_importlibs(dxdiag user32 advapi32 comctl32 dinput8 setupapi dsound ddraw version gdi32 winmm d3d9 msvcrt kernel32 ntdll) -add_pch(dxdiag precomp.h) +add_pch(dxdiag precomp.h SOURCE) add_cd_file(TARGET dxdiag DESTINATION reactos/system32 FOR all) diff --git a/reactos/base/applications/fontview/CMakeLists.txt b/reactos/base/applications/fontview/CMakeLists.txt index 0b6d921e466..53b55f8532c 100644 --- a/reactos/base/applications/fontview/CMakeLists.txt +++ b/reactos/base/applications/fontview/CMakeLists.txt @@ -1,9 +1,11 @@ -add_executable(fontview +list(APPEND SOURCE display.c fontview.c - fontview.rc) + precomp.h) +add_executable(fontview ${SOURCE} fontview.rc) set_module_type(fontview win32gui) add_importlibs(fontview comdlg32 gdi32 shell32 user32 msvcrt kernel32) +add_pch(fontview precomp.h SOURCE) add_cd_file(TARGET fontview DESTINATION reactos/system32 FOR all) diff --git a/reactos/base/applications/games/solitaire/CMakeLists.txt b/reactos/base/applications/games/solitaire/CMakeLists.txt index 9bb86e79276..5172ccb304a 100644 --- a/reactos/base/applications/games/solitaire/CMakeLists.txt +++ b/reactos/base/applications/games/solitaire/CMakeLists.txt @@ -3,14 +3,15 @@ set_cpp(WITH_RUNTIME) include_directories(${REACTOS_SOURCE_DIR}/lib/3rdparty/cardlib) -add_executable(sol +list(APPEND SOURCE solcreate.cpp solgame.cpp solitaire.cpp - rsrc.rc) + solitaire.h) +add_executable(sol ${SOURCE} rsrc.rc) target_link_libraries(sol cardlib) -add_pch(sol solitaire.h) set_module_type(sol win32gui UNICODE) add_importlibs(sol advapi32 comctl32 user32 gdi32 msvcrt kernel32) +add_pch(sol solitaire.h SOURCE) add_cd_file(TARGET sol DESTINATION reactos/system32 FOR all) diff --git a/reactos/base/applications/games/spider/CMakeLists.txt b/reactos/base/applications/games/spider/CMakeLists.txt index 83660dd9d71..a74233e4545 100644 --- a/reactos/base/applications/games/spider/CMakeLists.txt +++ b/reactos/base/applications/games/spider/CMakeLists.txt @@ -5,13 +5,14 @@ include_directories( ${REACTOS_SOURCE_DIR}/lib/3rdparty/cardlib ${CMAKE_CURRENT_SOURCE_DIR}) -add_executable(spider +list(APPEND SOURCE spider.cpp spigame.cpp - rsrc.rc) + spider.h) +add_executable(spider ${SOURCE} rsrc.rc) target_link_libraries(spider cardlib) -add_pch(spider spider.h) +add_pch(spider spider.h SOURCE) set_module_type(spider win32gui UNICODE) add_importlibs(spider advapi32 comctl32 user32 gdi32 msvcrt kernel32) add_cd_file(TARGET spider DESTINATION reactos/system32 FOR all) diff --git a/reactos/base/applications/games/winmine/CMakeLists.txt b/reactos/base/applications/games/winmine/CMakeLists.txt index 9e0eeee3936..baa1856c6ce 100644 --- a/reactos/base/applications/games/winmine/CMakeLists.txt +++ b/reactos/base/applications/games/winmine/CMakeLists.txt @@ -1,12 +1,14 @@ include_directories(${CMAKE_CURRENT_SOURCE_DIR}) -add_executable(winmine +list(APPEND SOURCE main.c dialog.c - rsrc.rc) + main.h) +add_executable(winmine ${SOURCE} rsrc.rc) set_module_type(winmine win32gui) target_link_libraries(winmine wine) add_importlibs(winmine user32 gdi32 advapi32 shell32 msvcrt kernel32 ntdll) +add_pch(winmine main.h SOURCE) add_cd_file(TARGET winmine DESTINATION reactos/system32 FOR all) diff --git a/reactos/base/applications/logoff/CMakeLists.txt b/reactos/base/applications/logoff/CMakeLists.txt index 8be27725ec0..a5c08d7c24e 100644 --- a/reactos/base/applications/logoff/CMakeLists.txt +++ b/reactos/base/applications/logoff/CMakeLists.txt @@ -2,10 +2,10 @@ list(APPEND SOURCE misc.c logoff.c - logoff.rc) + precomp.h) -add_executable(logoff ${SOURCE}) +add_executable(logoff ${SOURCE} logoff.rc) set_module_type(logoff win32cui) add_importlibs(logoff advapi32 user32 msvcrt kernel32) -add_pch(logoff precomp.h) +add_pch(logoff precomp.h SOURCE) add_cd_file(TARGET logoff DESTINATION reactos/system32 FOR all) diff --git a/reactos/base/applications/magnify/CMakeLists.txt b/reactos/base/applications/magnify/CMakeLists.txt index 43195c63c40..0db7137c41a 100644 --- a/reactos/base/applications/magnify/CMakeLists.txt +++ b/reactos/base/applications/magnify/CMakeLists.txt @@ -1,10 +1,11 @@ -add_executable(magnify +list(APPEND SOURCE magnifier.c settings.c - magnify.rc) + magnifier.h) -add_pch(magnify magnifier.h) +add_executable(magnify ${SOURCE} magnify.rc) set_module_type(magnify win32gui) add_importlibs(magnify user32 gdi32 advapi32 shell32 msvcrt kernel32) +add_pch(magnify magnifier.h SOURCE) add_cd_file(TARGET magnify DESTINATION reactos/system32 FOR all) diff --git a/reactos/base/applications/mmc/CMakeLists.txt b/reactos/base/applications/mmc/CMakeLists.txt index 387d4e3e87c..cad6e4d1ddb 100644 --- a/reactos/base/applications/mmc/CMakeLists.txt +++ b/reactos/base/applications/mmc/CMakeLists.txt @@ -3,9 +3,9 @@ list(APPEND SOURCE console.c misc.c mmc.c - mmc.rc) + precomp.h) -add_executable(mmcclient ${SOURCE}) +add_executable(mmcclient ${SOURCE} mmc.rc) set_module_type(mmcclient win32gui UNICODE) add_importlibs(mmcclient user32 gdi32 comdlg32 advapi32 shell32 comctl32 msvcrt kernel32) -add_pch(mmcclient precomp.h) +add_pch(mmcclient precomp.h SOURCE) diff --git a/reactos/base/applications/msconfig/CMakeLists.txt b/reactos/base/applications/msconfig/CMakeLists.txt index f80a7d625e0..77f652bcd6f 100644 --- a/reactos/base/applications/msconfig/CMakeLists.txt +++ b/reactos/base/applications/msconfig/CMakeLists.txt @@ -7,10 +7,10 @@ list(APPEND SOURCE freeldrpage.c generalpage.c msconfig.c - msconfig.rc) + precomp.h) -add_executable(msconfig ${SOURCE}) +add_executable(msconfig ${SOURCE} msconfig.rc) set_module_type(msconfig win32gui UNICODE) add_importlibs(msconfig user32 advapi32 version comctl32 shell32 shlwapi msvcrt kernel32) -add_pch(msconfig precomp.h) +add_pch(msconfig precomp.h SOURCE) add_cd_file(TARGET msconfig DESTINATION reactos/system32 FOR all) diff --git a/reactos/base/applications/mscutils/devmgmt/CMakeLists.txt b/reactos/base/applications/mscutils/devmgmt/CMakeLists.txt index e32b229b7ad..2c4c0ac7ce9 100644 --- a/reactos/base/applications/mscutils/devmgmt/CMakeLists.txt +++ b/reactos/base/applications/mscutils/devmgmt/CMakeLists.txt @@ -5,10 +5,10 @@ list(APPEND SOURCE enumdevices.c mainwnd.c misc.c - devmgmt.rc) + precomp.h) -add_executable(devmgmt ${SOURCE}) +add_executable(devmgmt ${SOURCE} devmgmt.rc) set_module_type(devmgmt win32gui UNICODE) add_importlibs(devmgmt setupapi gdi32 user32 comctl32 advapi32 devmgr msvcrt kernel32) -add_pch(devmgmt precomp.h) +add_pch(devmgmt precomp.h SOURCE) add_cd_file(TARGET devmgmt DESTINATION reactos/system32 FOR all) diff --git a/reactos/base/applications/mscutils/servman/CMakeLists.txt b/reactos/base/applications/mscutils/servman/CMakeLists.txt index cbfb69805fc..53fb2c36d7d 100644 --- a/reactos/base/applications/mscutils/servman/CMakeLists.txt +++ b/reactos/base/applications/mscutils/servman/CMakeLists.txt @@ -19,10 +19,10 @@ list(APPEND SOURCE start.c stop.c stop_dependencies.c - servman.rc) + precomp.h) -add_executable(servman ${SOURCE}) +add_executable(servman ${SOURCE} servman.rc) set_module_type(servman win32gui UNICODE) add_importlibs(servman user32 gdi32 advapi32 version comctl32 shell32 comdlg32 msvcrt kernel32) -add_pch(servman precomp.h) +add_pch(servman precomp.h SOURCE) add_cd_file(TARGET servman DESTINATION reactos/system32 FOR all) diff --git a/reactos/base/applications/mspaint/CMakeLists.txt b/reactos/base/applications/mspaint/CMakeLists.txt index 40f14311db3..60c437dfff7 100644 --- a/reactos/base/applications/mspaint/CMakeLists.txt +++ b/reactos/base/applications/mspaint/CMakeLists.txt @@ -1,5 +1,5 @@ -add_executable(mspaint +list(APPEND SOURCE dialogs.c dib.c drawing.c @@ -12,9 +12,10 @@ add_executable(mspaint sizebox.c toolsettings.c winproc.c - rsrc.rc) + precomp.h) +add_executable(mspaint ${SOURCE} rsrc.rc) set_module_type(mspaint win32gui UNICODE) -add_pch(mspaint precomp.h) add_importlibs(mspaint comdlg32 shell32 user32 gdi32 advapi32 comctl32 msvcrt kernel32) +add_pch(mspaint precomp.h SOURCE) add_cd_file(TARGET mspaint DESTINATION reactos/system32 FOR all) diff --git a/reactos/base/applications/mstsc/CMakeLists.txt b/reactos/base/applications/mstsc/CMakeLists.txt index 9b903147d3d..1186fa8726a 100644 --- a/reactos/base/applications/mstsc/CMakeLists.txt +++ b/reactos/base/applications/mstsc/CMakeLists.txt @@ -19,10 +19,10 @@ list(APPEND SOURCE tcp.c uimain.c win32.c - rdc.rc) + precomp.h) -add_executable(mstsc ${SOURCE}) +add_executable(mstsc ${SOURCE} rdc.rc) set_module_type(mstsc win32gui UNICODE) add_importlibs(mstsc user32 gdi32 comctl32 ws2_32 advapi32 shell32 ole32 comdlg32 msvcrt kernel32) -add_pch(mstsc precomp.h) +add_pch(mstsc precomp.h SOURCE) add_cd_file(TARGET mstsc DESTINATION reactos/system32 FOR all) diff --git a/reactos/base/applications/network/finger/CMakeLists.txt b/reactos/base/applications/network/finger/CMakeLists.txt index dd5444909e0..0dd8a551caf 100644 --- a/reactos/base/applications/network/finger/CMakeLists.txt +++ b/reactos/base/applications/network/finger/CMakeLists.txt @@ -1,14 +1,15 @@ add_definitions(-D__USE_W32_SOCKETS) -add_executable(finger +list(APPEND SOURCE finger.c err.c getopt.c net.c - finger.rc) + precomp.h) +add_executable(finger ${SOURCE} finger.rc) set_module_type(finger win32cui) -add_pch(finger precomp.h) add_importlibs(finger ws2_32 msvcrt kernel32) +add_pch(finger precomp.h SOURCE) add_cd_file(TARGET finger DESTINATION reactos/system32 FOR all) diff --git a/reactos/base/applications/network/ftp/CMakeLists.txt b/reactos/base/applications/network/ftp/CMakeLists.txt index 48988202a2a..2c52f4d4974 100644 --- a/reactos/base/applications/network/ftp/CMakeLists.txt +++ b/reactos/base/applications/network/ftp/CMakeLists.txt @@ -1,7 +1,7 @@ add_definitions(-Dlint) -add_executable(ftp +list(APPEND SOURCE cmds.c cmdtab.c domacro.c @@ -9,11 +9,12 @@ add_executable(ftp ftp.c main.c ruserpass.c - ftp.rc) + precomp.h) +add_executable(ftp ${SOURCE} ftp.rc) set_module_type(ftp win32cui) add_importlibs(ftp ws2_32 iphlpapi msvcrt kernel32) -add_pch(ftp precomp.h) +add_pch(ftp precomp.h SOURCE) if(MSVC) target_link_libraries(ftp oldnames) diff --git a/reactos/base/applications/network/net/CMakeLists.txt b/reactos/base/applications/network/net/CMakeLists.txt index 4386350ec7a..6af429e80b6 100644 --- a/reactos/base/applications/network/net/CMakeLists.txt +++ b/reactos/base/applications/network/net/CMakeLists.txt @@ -8,11 +8,11 @@ list(APPEND SOURCE cmdHelpMsg.c cmdPause.c cmdContinue.c - help.c) + help.c + net.h) add_executable(net ${SOURCE}) - set_module_type(net win32cui UNICODE) -add_pch(net net.h) add_importlibs(net advapi32 msvcrt kernel32) +add_pch(net net.h SOURCE) add_cd_file(TARGET net DESTINATION reactos/system32 FOR all) diff --git a/reactos/base/applications/network/nslookup/CMakeLists.txt b/reactos/base/applications/network/nslookup/CMakeLists.txt index 6a6b59fce1b..3472cc6876b 100644 --- a/reactos/base/applications/network/nslookup/CMakeLists.txt +++ b/reactos/base/applications/network/nslookup/CMakeLists.txt @@ -1,10 +1,11 @@ -add_executable(nslookup +list(APPEND SOURCE nslookup.c utility.c - nslookup.rc) + nslookup.h) -add_pch(nslookup nslookup.h) +add_executable(nslookup ${SOURCE} nslookup.rc) set_module_type(nslookup win32cui) add_importlibs(nslookup user32 ws2_32 snmpapi iphlpapi msvcrt kernel32) +add_pch(nslookup nslookup.h SOURCE) add_cd_file(TARGET nslookup DESTINATION reactos/system32 FOR all) diff --git a/reactos/base/applications/network/telnet/CMakeLists.txt b/reactos/base/applications/network/telnet/CMakeLists.txt index 672a0de7130..dedb110f717 100644 --- a/reactos/base/applications/network/telnet/CMakeLists.txt +++ b/reactos/base/applications/network/telnet/CMakeLists.txt @@ -3,7 +3,7 @@ set_cpp(WITH_EXCEPTIONS WITH_STL) add_definitions(-D_CRT_NONSTDC_NO_DEPRECATE) -add_executable(telnet +list(APPEND SOURCE src/ansiprsr.cpp src/keytrans.cpp src/tcharmap.cpp @@ -23,13 +23,14 @@ add_executable(telnet src/tscript.cpp src/tscroll.cpp src/ttelhndl.cpp - telnet.rc) - -set_module_type(telnet win32cui) -add_pch(telnet src/precomp.h) -add_importlibs(telnet ws2_32 user32 msvcrt kernel32 ntdll) -add_cd_file(TARGET telnet DESTINATION reactos/system32 FOR all) + precomp.h) if(NOT MSVC) add_compile_flags_language("-Wno-narrowing" "CXX") endif() + +add_executable(telnet ${SOURCE} telnet.rc) +set_module_type(telnet win32cui) +add_importlibs(telnet ws2_32 user32 msvcrt kernel32 ntdll) +add_pch(telnet precomp.h SOURCE) +add_cd_file(TARGET telnet DESTINATION reactos/system32 FOR all) diff --git a/reactos/base/applications/notepad/CMakeLists.txt b/reactos/base/applications/notepad/CMakeLists.txt index 364323e45e4..14b428d1d21 100644 --- a/reactos/base/applications/notepad/CMakeLists.txt +++ b/reactos/base/applications/notepad/CMakeLists.txt @@ -4,10 +4,10 @@ list(APPEND SOURCE main.c settings.c text.c - rsrc.rc) + notepad.h) -add_executable(notepad ${SOURCE}) +add_executable(notepad ${SOURCE} rsrc.rc) set_module_type(notepad win32gui UNICODE) add_importlibs(notepad user32 gdi32 comctl32 comdlg32 advapi32 shell32 msvcrt kernel32) -add_pch(notepad notepad.h) +add_pch(notepad notepad.h SOURCE) add_cd_file(TARGET notepad DESTINATION reactos/system32 FOR all) diff --git a/reactos/base/applications/rapps/CMakeLists.txt b/reactos/base/applications/rapps/CMakeLists.txt index 2f09c0e17dc..8fb4ea59067 100644 --- a/reactos/base/applications/rapps/CMakeLists.txt +++ b/reactos/base/applications/rapps/CMakeLists.txt @@ -15,13 +15,13 @@ list(APPEND SOURCE toolbar.c treeview.c winmain.c - rapps.rc) + rapps.h) -add_executable(rapps ${SOURCE}) -add_pch(rapps rapps.h) +add_executable(rapps ${SOURCE} rapps.rc) set_module_type(rapps win32gui UNICODE) target_link_libraries(rapps uuid) add_importlibs(rapps advapi32 comctl32 gdi32 urlmon wininet user32 shell32 shlwapi ole32 msvcrt kernel32 ntdll) +add_pch(rapps rapps.h SOURCE) add_dependencies(rapps rappsmsg) add_message_headers(ANSI rappsmsg.mc) add_cd_file(TARGET rapps DESTINATION reactos/system32 FOR all) diff --git a/reactos/base/applications/regedit/CMakeLists.txt b/reactos/base/applications/regedit/CMakeLists.txt index 08f8f6ca6f6..d97079a7026 100644 --- a/reactos/base/applications/regedit/CMakeLists.txt +++ b/reactos/base/applications/regedit/CMakeLists.txt @@ -16,12 +16,12 @@ list(APPEND SOURCE security.c settings.c treeview.c - regedit.rc) + regedit.h) -add_executable(regedit ${SOURCE}) +add_executable(regedit ${SOURCE} regedit.rc) set_module_type(regedit win32gui UNICODE) target_link_libraries(regedit uuid) add_importlibs(regedit user32 gdi32 advapi32 ole32 shell32 comctl32 comdlg32 shlwapi msvcrt kernel32) -add_pch(regedit regedit.h) +add_pch(regedit regedit.h SOURCE) add_cd_file(TARGET regedit DESTINATION reactos FOR all) #add_subdirectory(clb) diff --git a/reactos/base/applications/sc/CMakeLists.txt b/reactos/base/applications/sc/CMakeLists.txt index 16fb5a0e1d8..890964a4d07 100644 --- a/reactos/base/applications/sc/CMakeLists.txt +++ b/reactos/base/applications/sc/CMakeLists.txt @@ -10,11 +10,10 @@ list(APPEND SOURCE sc.c start.c usage.c - sc.rc) - -add_executable(sc ${SOURCE}) + sc.h) +add_executable(sc ${SOURCE} sc.rc) set_module_type(sc win32cui UNICODE) add_importlibs(sc advapi32 msvcrt kernel32) -add_pch(sc sc.h) +add_pch(sc sc.h SOURCE) add_cd_file(TARGET sc DESTINATION reactos/system32 FOR all) diff --git a/reactos/base/applications/screensavers/3dtext/CMakeLists.txt b/reactos/base/applications/screensavers/3dtext/CMakeLists.txt index 8ae3ad7f67b..237e8d4bbfd 100644 --- a/reactos/base/applications/screensavers/3dtext/CMakeLists.txt +++ b/reactos/base/applications/screensavers/3dtext/CMakeLists.txt @@ -1,12 +1,13 @@ -add_executable(3dtext +list(APPEND SOURCE 3dtext.c settings.c - rsrc.rc) + 3dtext.h) +add_executable(3dtext ${SOURCE} rsrc.rc) set_module_type(3dtext win32gui UNICODE) -add_pch(3dtext 3dtext.h) set_target_properties(3dtext PROPERTIES SUFFIX ".scr") target_link_libraries(3dtext scrnsave) add_importlibs(3dtext user32 gdi32 opengl32 glu32 advapi32 msvcrt kernel32) +add_pch(3dtext 3dtext.h SOURCE) add_cd_file(TARGET 3dtext DESTINATION reactos/system32 FOR all) diff --git a/reactos/base/applications/shutdown/CMakeLists.txt b/reactos/base/applications/shutdown/CMakeLists.txt index bf8ccf3fa24..8d553e73c63 100644 --- a/reactos/base/applications/shutdown/CMakeLists.txt +++ b/reactos/base/applications/shutdown/CMakeLists.txt @@ -3,10 +3,10 @@ list(APPEND SOURCE gui.c misc.c shutdown.c - shutdown.rc) + precomp.h) -add_executable(shutdown ${SOURCE}) +add_executable(shutdown ${SOURCE} shutdown.rc) set_module_type(shutdown win32cui UNICODE) add_importlibs(shutdown advapi32 user32 msvcrt powrprof kernel32) -add_pch(shutdown precomp.h) +add_pch(shutdown precomp.h SOURCE) add_cd_file(TARGET shutdown DESTINATION reactos/system32 FOR all) diff --git a/reactos/base/applications/sndrec32/CMakeLists.txt b/reactos/base/applications/sndrec32/CMakeLists.txt index 74a567c2402..72697a1c3c6 100644 --- a/reactos/base/applications/sndrec32/CMakeLists.txt +++ b/reactos/base/applications/sndrec32/CMakeLists.txt @@ -1,7 +1,7 @@ set_cpp(WITH_RUNTIME) -add_executable(sndrec32 +list(APPEND SOURCE audio_format.cpp audio_membuffer.cpp #audio_producer.cpp @@ -10,8 +10,10 @@ add_executable(sndrec32 audio_wavein.cpp audio_waveout.cpp sndrec32.cpp - rsrc.rc) + stdafx.h) +add_executable(sndrec32 ${SOURCE} rsrc.rc) set_module_type(sndrec32 win32gui UNICODE) add_importlibs(sndrec32 winmm user32 msacm32 comctl32 comdlg32 gdi32 msvcrt kernel32 shell32) +add_pch(sndrec32 stdafx.h SOURCE) add_cd_file(TARGET sndrec32 DESTINATION reactos/system32 FOR all) diff --git a/reactos/base/applications/sndvol32/CMakeLists.txt b/reactos/base/applications/sndvol32/CMakeLists.txt index 7b44fc814da..72fb422b0f0 100644 --- a/reactos/base/applications/sndvol32/CMakeLists.txt +++ b/reactos/base/applications/sndvol32/CMakeLists.txt @@ -4,10 +4,10 @@ list(APPEND SOURCE misc.c mixer.c sndvol32.c - sndvol32.rc) + sndvol32.h) -add_executable(sndvol32 ${SOURCE}) +add_executable(sndvol32 ${SOURCE} sndvol32.rc) set_module_type(sndvol32 win32gui UNICODE) add_importlibs(sndvol32 user32 advapi32 gdi32 comctl32 shell32 winmm msvcrt kernel32 ntdll) -add_pch(sndvol32 sndvol32.h) +add_pch(sndvol32 sndvol32.h SOURCE) add_cd_file(TARGET sndvol32 DESTINATION reactos/system32 FOR all) diff --git a/reactos/base/applications/taskmgr/CMakeLists.txt b/reactos/base/applications/taskmgr/CMakeLists.txt index a0a4e2a7d3b..f028b0a2ae6 100644 --- a/reactos/base/applications/taskmgr/CMakeLists.txt +++ b/reactos/base/applications/taskmgr/CMakeLists.txt @@ -18,10 +18,10 @@ list(APPEND SOURCE trayicon.c taskmgr.c graphctl.c - taskmgr.rc) + precomp.h) -add_executable(taskmgr ${SOURCE}) +add_executable(taskmgr ${SOURCE} taskmgr.rc) set_module_type(taskmgr win32gui UNICODE) add_importlibs(taskmgr advapi32 user32 gdi32 shell32 comctl32 msvcrt kernel32 ntdll) -add_pch(taskmgr precomp.h) +add_pch(taskmgr precomp.h SOURCE) add_cd_file(TARGET taskmgr DESTINATION reactos/system32 FOR all) diff --git a/reactos/base/applications/winhlp32/CMakeLists.txt b/reactos/base/applications/winhlp32/CMakeLists.txt index 8c22d713be5..9cecac835c6 100644 --- a/reactos/base/applications/winhlp32/CMakeLists.txt +++ b/reactos/base/applications/winhlp32/CMakeLists.txt @@ -12,11 +12,16 @@ list(APPEND SOURCE hlpfile.c macro.c macro.lex.yy.c - string.c - winhelp.c) + winhelp.c + winhelp.h) + +add_executable(winhlp32 + ${SOURCE} + string.c + rsrc.rc) -add_executable(winhlp32 ${SOURCE} rsrc.rc) set_module_type(winhlp32 win32gui) target_link_libraries(winhlp32 wine) add_importlibs(winhlp32 user32 gdi32 shell32 comctl32 comdlg32 msvcrt kernel32 ntdll) +add_pch(winhlp32 winhelp.h SOURCE) add_cd_file(TARGET winhlp32 DESTINATION reactos FOR all)