[APPLICATIONS]

* Prepare the CMake scripts for PCH.
CORE-7716

svn path=/trunk/; revision=62054
This commit is contained in:
Amine Khaldi 2014-02-08 18:13:52 +00:00
parent 315418173c
commit 4319284676
30 changed files with 113 additions and 93 deletions

View file

@ -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)

View file

@ -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)

View file

@ -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)

View file

@ -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)

View file

@ -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)

View file

@ -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)

View file

@ -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)

View file

@ -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)

View file

@ -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)

View file

@ -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)

View file

@ -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)

View file

@ -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)

View file

@ -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)

View file

@ -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)

View file

@ -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)

View file

@ -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)

View file

@ -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)

View file

@ -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)

View file

@ -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)

View file

@ -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)

View file

@ -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)

View file

@ -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)

View file

@ -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)

View file

@ -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)

View file

@ -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)

View file

@ -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)

View file

@ -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)

View file

@ -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)

View file

@ -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)

View file

@ -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)