[CMAKE]
authorAmine Khaldi <amine.khaldi@reactos.org>
Sun, 3 Oct 2010 22:26:21 +0000 (22:26 +0000)
committerAmine Khaldi <amine.khaldi@reactos.org>
Sun, 3 Oct 2010 22:26:21 +0000 (22:26 +0000)
- Add almost all base applications (some are included but disabled too). This is the work of a human being, so no bots BS, no rbuildism, every single module was tested, built with the new build system mentality (no defines and linked libs redundancy, use of the the available macros, the linked libs are carefully selected, the dependencies are correctly tracked... etc)
- Brought to you by Alexey Komarov, with my humble review.

svn path=/branches/cmake-bringup/; revision=48973

39 files changed:
base/applications/CMakeLists.txt
base/applications/dxdiag/CMakeLists.txt [new file with mode: 0644]
base/applications/kbswitch/CMakeLists.txt [new file with mode: 0644]
base/applications/kbswitch/kbsdll/CMakeLists.txt [new file with mode: 0644]
base/applications/logoff/CMakeLists.txt [new file with mode: 0644]
base/applications/magnify/CMakeLists.txt [new file with mode: 0644]
base/applications/mmc/CMakeLists.txt [new file with mode: 0644]
base/applications/mplay32/CMakeLists.txt [new file with mode: 0644]
base/applications/msconfig/CMakeLists.txt [new file with mode: 0644]
base/applications/mscutils/CMakeLists.txt [new file with mode: 0644]
base/applications/mscutils/devmgmt/CMakeLists.txt [new file with mode: 0644]
base/applications/mscutils/eventvwr/CMakeLists.txt [new file with mode: 0644]
base/applications/mscutils/servman/CMakeLists.txt [new file with mode: 0644]
base/applications/mstsc/CMakeLists.txt [new file with mode: 0644]
base/applications/network/CMakeLists.txt [new file with mode: 0644]
base/applications/network/arp/CMakeLists.txt [new file with mode: 0644]
base/applications/network/dwnl/CMakeLists.txt [new file with mode: 0644]
base/applications/network/finger/CMakeLists.txt [new file with mode: 0644]
base/applications/network/ftp/CMakeLists.txt [new file with mode: 0644]
base/applications/network/ipconfig/CMakeLists.txt [new file with mode: 0644]
base/applications/network/net/CMakeLists.txt [new file with mode: 0644]
base/applications/network/netstat/CMakeLists.txt [new file with mode: 0644]
base/applications/network/nslookup/CMakeLists.txt [new file with mode: 0644]
base/applications/network/ping/CMakeLists.txt [new file with mode: 0644]
base/applications/network/route/CMakeLists.txt [new file with mode: 0644]
base/applications/network/telnet/CMakeLists.txt [new file with mode: 0644]
base/applications/network/tracert/CMakeLists.txt [new file with mode: 0644]
base/applications/network/whois/CMakeLists.txt [new file with mode: 0644]
base/applications/paint/CMakeLists.txt [new file with mode: 0644]
base/applications/regedit/CMakeLists.txt [new file with mode: 0644]
base/applications/regedt32/CMakeLists.txt [new file with mode: 0644]
base/applications/sc/CMakeLists.txt [new file with mode: 0644]
base/applications/shutdown/CMakeLists.txt [new file with mode: 0644]
base/applications/sndrec32/CMakeLists.txt [new file with mode: 0644]
base/applications/sndvol32/CMakeLists.txt [new file with mode: 0644]
base/applications/taskmgr/CMakeLists.txt [new file with mode: 0644]
base/applications/winhlp32/CMakeLists.txt [new file with mode: 0644]
base/applications/winver/CMakeLists.txt [new file with mode: 0644]
base/applications/write/CMakeLists.txt [new file with mode: 0644]

index ebddfb0..e4ee917 100644 (file)
@@ -4,33 +4,33 @@ add_subdirectory(calc)
 add_subdirectory(charmap)
 add_subdirectory(cmdutils)
 add_subdirectory(control)
 add_subdirectory(charmap)
 add_subdirectory(cmdutils)
 add_subdirectory(control)
-#add_subdirectory(dxdiag)
+add_subdirectory(dxdiag)
 add_subdirectory(extrac32)
 add_subdirectory(fontview)
 add_subdirectory(games)
 add_subdirectory(hh)
 add_subdirectory(iexplore)
 add_subdirectory(extrac32)
 add_subdirectory(fontview)
 add_subdirectory(games)
 add_subdirectory(hh)
 add_subdirectory(iexplore)
-#add_subdirectory(kbswitch)
-#add_subdirectory(logoff)
-#add_subdirectory(magnify)
+add_subdirectory(kbswitch)
+add_subdirectory(logoff)
+add_subdirectory(magnify)
 #add_subdirectory(mmc)
 #add_subdirectory(mmc)
-#add_subdirectory(mplay32)
-#add_subdirectory(msconfig)
-#add_subdirectory(mscutils)
-#add_subdirectory(mstsc)
-#add_subdirectory(network)
+add_subdirectory(mplay32)
+add_subdirectory(msconfig)
+add_subdirectory(mscutils)
+add_subdirectory(mstsc)
+add_subdirectory(network)
 #add_subdirectory(notepad)
 #add_subdirectory(notepad)
-#add_subdirectory(paint)
+add_subdirectory(paint)
 #add_subdirectory(rapps)
 #add_subdirectory(regedit)
 #add_subdirectory(rapps)
 #add_subdirectory(regedit)
-#add_subdirectory(regedt32)
-#add_subdirectory(sc)
+add_subdirectory(regedt32)
+add_subdirectory(sc)
 #add_subdirectory(screensavers)
 #add_subdirectory(screensavers)
-#add_subdirectory(shutdown)
-#add_subdirectory(sndrec32)
-#add_subdirectory(sndvol32)
-#add_subdirectory(taskmgr)
-#add_subdirectory(winhlp32)
-#add_subdirectory(winver)
+add_subdirectory(shutdown)
+add_subdirectory(sndrec32)
+add_subdirectory(sndvol32)
+add_subdirectory(taskmgr)
+add_subdirectory(winhlp32)
+add_subdirectory(winver)
 #add_subdirectory(wordpad)
 #add_subdirectory(wordpad)
-#add_subdirectory(write)
+add_subdirectory(write)
diff --git a/base/applications/dxdiag/CMakeLists.txt b/base/applications/dxdiag/CMakeLists.txt
new file mode 100644 (file)
index 0000000..b4b23d4
--- /dev/null
@@ -0,0 +1,30 @@
+
+set_unicode()
+
+list(APPEND SOURCE
+    system.c
+    display.c
+    sound.c
+    music.c
+    input.c
+    network.c
+    help.c
+    dxdiag.c
+    dxdiag.rc
+    ddtest.c
+    d3dtest.c
+    d3dtest7.c
+    d3dtest8.c
+    d3dtest9.c)
+
+add_executable(dxdiag
+    ${CMAKE_CURRENT_BINARY_DIR}/dxdiag_precomp.h.gch
+    ${SOURCE})
+
+add_pch(dxdiag ${CMAKE_CURRENT_SOURCE_DIR}/precomp.h ${SOURCE})
+
+set_module_type(dxdiag win32gui)
+
+target_link_libraries(dxdiag dxguid)
+
+add_importlibs(dxdiag user32 advapi32 comctl32 dinput8 setupapi dsound ddraw version gdi32 winmm d3d9 msvcrt)
diff --git a/base/applications/kbswitch/CMakeLists.txt b/base/applications/kbswitch/CMakeLists.txt
new file mode 100644 (file)
index 0000000..1a77556
--- /dev/null
@@ -0,0 +1,9 @@
+
+set_unicode()
+
+add_executable(kbswitch kbswitch.c kbswitch.rc)
+
+set_module_type(kbswitch win32gui)
+add_importlibs(kbswitch advapi32 user32 shell32 gdi32 msvcrt)
+
+add_subdirectory(kbsdll)
diff --git a/base/applications/kbswitch/kbsdll/CMakeLists.txt b/base/applications/kbswitch/kbsdll/CMakeLists.txt
new file mode 100644 (file)
index 0000000..7f9df23
--- /dev/null
@@ -0,0 +1,13 @@
+
+set_unicode()
+
+add_library(kbsdll SHARED kbsdll.c kbsdll.rc)
+
+spec2def(kbsdll ${CMAKE_CURRENT_SOURCE_DIR}/kbsdll.spec ${CMAKE_CURRENT_BINARY_DIR}/kbsdll.def)
+
+target_link_libraries(kbsdll ${CMAKE_CURRENT_BINARY_DIR}/kbsdll.def)
+
+set_module_type(kbsdll win32dll)
+add_importlibs(kbsdll user32 comctl32 kernel32)
+
+add_dependencies(kbsdll kbsdll_def)
diff --git a/base/applications/logoff/CMakeLists.txt b/base/applications/logoff/CMakeLists.txt
new file mode 100644 (file)
index 0000000..1cd66e0
--- /dev/null
@@ -0,0 +1,13 @@
+
+list(APPEND SOURCE
+    misc.c
+    logoff.c
+    logoff.rc)
+
+add_executable(logoff ${CMAKE_CURRENT_BINARY_DIR}/logoff_precomp.h.gch ${SOURCE})
+
+add_pch(logoff ${CMAKE_CURRENT_SOURCE_DIR}/precomp.h ${SOURCE})
+
+set_module_type(logoff win32cui)
+
+add_importlibs(logoff advapi32 user32 msvcrt)
diff --git a/base/applications/magnify/CMakeLists.txt b/base/applications/magnify/CMakeLists.txt
new file mode 100644 (file)
index 0000000..0023042
--- /dev/null
@@ -0,0 +1,9 @@
+
+add_executable(magnify
+    magnifier.c
+    settings.c
+    magnify.rc)
+
+set_module_type(magnify win32gui)
+
+add_importlibs(magnify user32 gdi32 advapi32 shell32 msvcrt)
diff --git a/base/applications/mmc/CMakeLists.txt b/base/applications/mmc/CMakeLists.txt
new file mode 100644 (file)
index 0000000..348df60
--- /dev/null
@@ -0,0 +1,16 @@
+
+set_unicode()
+
+list(APPEND SOURCE
+    console.c
+    misc.c
+    mmc.c
+    mmc.rc)
+
+add_executable(mmcclient ${CMAKE_CURRENT_BINARY_DIR}/mmcclient_precomp.h.gch ${SOURCE})
+
+add_pch(mmcclient ${CMAKE_CURRENT_SOURCE_DIR}/precomp.h ${SOURCE})
+
+set_module_type(mmcclient win32gui)
+
+add_importlibs(mmcclient user32 gdi32 comdlg32 advapi32 shell32 comctl32 msvcrt)
diff --git a/base/applications/mplay32/CMakeLists.txt b/base/applications/mplay32/CMakeLists.txt
new file mode 100644 (file)
index 0000000..21fdac1
--- /dev/null
@@ -0,0 +1,8 @@
+
+set_unicode()
+
+add_executable(mplay32 mplay32.c mplay32.rc)
+
+set_module_type(mplay32 win32gui)
+
+add_importlibs(mplay32 advapi32 comctl32 comdlg32 user32 gdi32 winmm shell32 msvcrt)
diff --git a/base/applications/msconfig/CMakeLists.txt b/base/applications/msconfig/CMakeLists.txt
new file mode 100644 (file)
index 0000000..cd34da7
--- /dev/null
@@ -0,0 +1,20 @@
+
+set_unicode()
+
+list(APPEND SOURCE
+    toolspage.c
+    srvpage.c
+    systempage.c
+    startuppage.c
+    freeldrpage.c
+    generalpage.c
+    msconfig.c
+    msconfig.rc)
+
+add_executable(msconfig ${CMAKE_CURRENT_BINARY_DIR}/msconfig_precomp.h.gch ${SOURCE})
+
+add_pch(msconfig ${CMAKE_CURRENT_SOURCE_DIR}/precomp.h ${SOURCE})
+
+set_module_type(msconfig win32gui)
+
+add_importlibs(msconfig user32 advapi32 version comctl32 shell32 shlwapi msvcrt)
diff --git a/base/applications/mscutils/CMakeLists.txt b/base/applications/mscutils/CMakeLists.txt
new file mode 100644 (file)
index 0000000..4f577ff
--- /dev/null
@@ -0,0 +1,4 @@
+
+add_subdirectory(devmgmt)
+add_subdirectory(eventvwr)
+add_subdirectory(servman)
diff --git a/base/applications/mscutils/devmgmt/CMakeLists.txt b/base/applications/mscutils/devmgmt/CMakeLists.txt
new file mode 100644 (file)
index 0000000..effad6f
--- /dev/null
@@ -0,0 +1,18 @@
+
+set_unicode()
+
+list(APPEND SOURCE
+    about.c
+    devmgmt.c
+    enumdevices.c
+    mainwnd.c
+    misc.c
+    devmgmt.rc)
+
+add_executable(devmgmt ${CMAKE_CURRENT_BINARY_DIR}/devmgmt_precomp.h.gch ${SOURCE})
+
+add_pch(devmgmt ${CMAKE_CURRENT_SOURCE_DIR}/precomp.h ${SOURCE})
+
+set_module_type(devmgmt win32gui)
+
+add_importlibs(devmgmt setupapi gdi32 user32 comctl32 advapi32 devmgr msvcrt)
diff --git a/base/applications/mscutils/eventvwr/CMakeLists.txt b/base/applications/mscutils/eventvwr/CMakeLists.txt
new file mode 100644 (file)
index 0000000..fdb0803
--- /dev/null
@@ -0,0 +1,8 @@
+
+set_unicode()
+
+add_executable(eventvwr eventvwr.c eventvwr.rc)
+
+set_module_type(eventvwr win32gui)
+
+add_importlibs(eventvwr user32 comctl32 advapi32 msvcrt)
diff --git a/base/applications/mscutils/servman/CMakeLists.txt b/base/applications/mscutils/servman/CMakeLists.txt
new file mode 100644 (file)
index 0000000..19304d5
--- /dev/null
@@ -0,0 +1,32 @@
+
+set_unicode()
+
+list(APPEND SOURCE
+    about.c
+    control.c
+    create.c
+    delete.c
+    dependencies_tv1.c
+    dependencies_tv2.c
+    export.c
+    listview.c
+    mainwnd.c
+    misc.c
+    progress.c
+    propsheet.c
+    propsheet_depends.c
+    propsheet_general.c
+    query.c
+    servman.c
+    start.c
+    stop.c
+    stop_dependencies.c
+    servman.rc)
+
+add_executable(servman ${CMAKE_CURRENT_BINARY_DIR}/servman_precomp.h.gch ${SOURCE})
+
+add_pch(servman ${CMAKE_CURRENT_SOURCE_DIR}/precomp.h ${SOURCE})
+
+set_module_type(servman win32gui)
+
+add_importlibs(servman user32 gdi32 advapi32 version comctl32 shell32 comdlg32 msvcrt)
diff --git a/base/applications/mstsc/CMakeLists.txt b/base/applications/mstsc/CMakeLists.txt
new file mode 100644 (file)
index 0000000..1ee8699
--- /dev/null
@@ -0,0 +1,32 @@
+
+set_unicode()
+
+list(APPEND SOURCE
+    bitmap.c
+    bsops.c
+    cache.c
+    channels.c
+    connectdialog.c
+    iso.c
+    licence.c
+    mcs.c
+    mppc.c
+    orders.c
+    pstcache.c
+    rdp5.c
+    rdp.c
+    secure.c
+    settings.c
+    ssl_calls.c
+    tcp.c
+    uimain.c
+    win32.c
+    rdc.rc)
+
+add_executable(mstsc ${CMAKE_CURRENT_BINARY_DIR}/mstsc_precomp.h.gch ${SOURCE})
+
+add_pch(mstsc ${CMAKE_CURRENT_SOURCE_DIR}/precomp.h ${SOURCE})
+
+set_module_type(mstsc win32gui)
+
+add_importlibs(mstsc user32 gdi32 comctl32 ws2_32 advapi32 shell32 ole32 comdlg32 msvcrt)
diff --git a/base/applications/network/CMakeLists.txt b/base/applications/network/CMakeLists.txt
new file mode 100644 (file)
index 0000000..277cd52
--- /dev/null
@@ -0,0 +1,14 @@
+
+add_subdirectory(arp)
+#add_subdirectory(dwnl)
+add_subdirectory(finger)
+#add_subdirectory(ftp)
+add_subdirectory(ipconfig)
+add_subdirectory(net)
+add_subdirectory(netstat)
+add_subdirectory(nslookup)
+add_subdirectory(ping)
+#add_subdirectory(route)
+add_subdirectory(telnet)
+add_subdirectory(tracert)
+#add_subdirectory(whois)
diff --git a/base/applications/network/arp/CMakeLists.txt b/base/applications/network/arp/CMakeLists.txt
new file mode 100644 (file)
index 0000000..1945475
--- /dev/null
@@ -0,0 +1,6 @@
+
+add_executable(arp arp.c arp.rc)
+
+set_module_type(arp win32cui)
+
+add_importlibs(arp iphlpapi ws2_32 shlwapi msvcrt)
diff --git a/base/applications/network/dwnl/CMakeLists.txt b/base/applications/network/dwnl/CMakeLists.txt
new file mode 100644 (file)
index 0000000..3877a04
--- /dev/null
@@ -0,0 +1,10 @@
+
+set_unicode()
+
+add_executable(dwnl dwnl.c)
+
+set_module_type(dwnl win32cui)
+
+target_link_libraries(dwnl uuid)
+
+add_importlibs(dwnl urlmon wininet uuid msvcrt)
diff --git a/base/applications/network/finger/CMakeLists.txt b/base/applications/network/finger/CMakeLists.txt
new file mode 100644 (file)
index 0000000..f521a03
--- /dev/null
@@ -0,0 +1,12 @@
+add_definitions(-D__USE_W32_SOCKETS)
+
+add_executable(finger 
+    finger.c
+    err.c
+    getopt.c
+    net.c
+    finger.rc)
+
+set_module_type(finger win32cui)
+
+add_importlibs(finger ws2_32 msvcrt)
diff --git a/base/applications/network/ftp/CMakeLists.txt b/base/applications/network/ftp/CMakeLists.txt
new file mode 100644 (file)
index 0000000..65414a8
--- /dev/null
@@ -0,0 +1,13 @@
+add_executable(ftp
+    cmds.c
+    cmdtab.c
+    domacro.c
+    fake.c
+    ftp.c
+    main.c
+    ruserpass.c
+    ftp.rc)
+
+set_module_type(ftp win32cui)
+
+add_importlibs(ftp ws2_32 iphlpapi msvcrt)
diff --git a/base/applications/network/ipconfig/CMakeLists.txt b/base/applications/network/ipconfig/CMakeLists.txt
new file mode 100644 (file)
index 0000000..69c6fdb
--- /dev/null
@@ -0,0 +1,6 @@
+
+add_executable(ipconfig ipconfig.c ipconfig.rc)
+
+set_module_type(ipconfig win32cui)
+
+add_importlibs(ipconfig user32 iphlpapi advapi32 msvcrt)
diff --git a/base/applications/network/net/CMakeLists.txt b/base/applications/network/net/CMakeLists.txt
new file mode 100644 (file)
index 0000000..e9aa95f
--- /dev/null
@@ -0,0 +1,15 @@
+
+add_definitions(-D__USE_W32_SOCKETS)
+
+list(APPEND SOURCE
+    main.c
+    cmdstart.c
+    cmdStop.c
+    help.c
+    process.c)
+
+add_executable(net ${SOURCE})
+
+set_module_type(net win32cui)
+
+add_importlibs(net ws2_32 msvcrt)
diff --git a/base/applications/network/netstat/CMakeLists.txt b/base/applications/network/netstat/CMakeLists.txt
new file mode 100644 (file)
index 0000000..c2d7f3e
--- /dev/null
@@ -0,0 +1,6 @@
+
+add_executable(netstat netstat.c netstat.rc)
+
+set_module_type(netstat win32cui)
+
+add_importlibs(netstat user32 ws2_32 snmpapi iphlpapi msvcrt)
diff --git a/base/applications/network/nslookup/CMakeLists.txt b/base/applications/network/nslookup/CMakeLists.txt
new file mode 100644 (file)
index 0000000..e3e27ff
--- /dev/null
@@ -0,0 +1,9 @@
+
+add_executable(nslookup
+    nslookup.c
+    utility.c
+    nslookup.rc)
+
+set_module_type(nslookup win32cui)
+
+add_importlibs(nslookup user32 ws2_32 snmpapi iphlpapi msvcrt)
diff --git a/base/applications/network/ping/CMakeLists.txt b/base/applications/network/ping/CMakeLists.txt
new file mode 100644 (file)
index 0000000..5b796bf
--- /dev/null
@@ -0,0 +1,7 @@
+add_definitions(-D__USE_W32_SOCKETS)
+
+add_executable(ping ping.c ping.rc)
+
+set_module_type(ping win32cui)
+
+add_importlibs(ping ws2_32 msvcrt)
diff --git a/base/applications/network/route/CMakeLists.txt b/base/applications/network/route/CMakeLists.txt
new file mode 100644 (file)
index 0000000..e26038c
--- /dev/null
@@ -0,0 +1,7 @@
+
+set_unicode()
+
+add_executable(route route.c route.rc)
+
+set_module_type(route win32cui)
+add_importlibs(route ws2_32 iphlpapi msvcrt)
diff --git a/base/applications/network/telnet/CMakeLists.txt b/base/applications/network/telnet/CMakeLists.txt
new file mode 100644 (file)
index 0000000..cd1100e
--- /dev/null
@@ -0,0 +1,27 @@
+add_definitions(-D_CRT_NONSTDC_NO_DEPRECATE)
+
+add_executable(telnet
+    src/ansiprsr.cpp
+    src/keytrans.cpp
+    src/tcharmap.cpp
+    src/tconsole.cpp
+    src/tkeydef.cpp
+    src/tkeymap.cpp
+    src/tmapldr.cpp
+    src/tmouse.cpp
+    src/tnclass.cpp
+    src/tnclip.cpp
+    src/tncon.cpp
+    src/tnconfig.cpp
+    src/tnerror.cpp
+    src/tnetwork.cpp
+    src/tnmain.cpp
+    src/tnmisc.cpp
+    src/tscript.cpp
+    src/tscroll.cpp
+    src/ttelhndl.cpp
+    telnet.rc)
+
+set_module_type(telnet win32cui)
+
+add_importlibs(telnet ws2_32 user32 msvcrt)
diff --git a/base/applications/network/tracert/CMakeLists.txt b/base/applications/network/tracert/CMakeLists.txt
new file mode 100644 (file)
index 0000000..9461a0f
--- /dev/null
@@ -0,0 +1,7 @@
+add_definitions(-D__USE_W32_SOCKETS)
+
+add_executable(tracert tracert.c tracert.rc)
+
+set_module_type(tracert win32cui)
+
+add_importlibs(tracert ws2_32 msvcrt)
diff --git a/base/applications/network/whois/CMakeLists.txt b/base/applications/network/whois/CMakeLists.txt
new file mode 100644 (file)
index 0000000..bafd462
--- /dev/null
@@ -0,0 +1,6 @@
+
+add_executable(whois whois.c whois.rc)
+
+set_module_type(whois win32cui)
+
+add_importlibs(whois ws2_32 msvcrt)
diff --git a/base/applications/paint/CMakeLists.txt b/base/applications/paint/CMakeLists.txt
new file mode 100644 (file)
index 0000000..8c3eacf
--- /dev/null
@@ -0,0 +1,21 @@
+
+set_unicode()
+
+add_executable(paint
+    dialogs.c
+    dib.c
+    drawing.c
+    history.c
+    main.c
+    mouse.c
+    palette.c
+    registry.c
+    selection.c
+    sizebox.c
+    toolsettings.c
+    winproc.c
+    rsrc.rc)
+
+set_module_type(paint win32gui)
+
+add_importlibs(paint comdlg32 shell32 user32 gdi32 advapi32 comctl32 msvcrt)
diff --git a/base/applications/regedit/CMakeLists.txt b/base/applications/regedit/CMakeLists.txt
new file mode 100644 (file)
index 0000000..097ef22
--- /dev/null
@@ -0,0 +1,31 @@
+
+set_unicode()
+
+include_directories(BEFORE .)
+
+list(APPEND SOURCE
+    about.c
+    childwnd.c
+    edit.c
+    find.c
+    framewnd.c
+    hexedit.c
+    listview.c
+    main.c
+    regedit.c
+    regproc.c
+    security.c
+    treeview.c
+    regedit.rc)
+
+add_pch(regedit ${CMAKE_CURRENT_SOURCE_DIR}/regedit.h ${SOURCE})
+
+add_executable(regedit ${CMAKE_CURRENT_BINARY_DIR}/regedit_regedit.h.gch ${SOURCE})
+
+set_module_type(regedit win32gui)
+
+target_link_libraries(regedit uuid)
+
+add_importlibs(regedit user32 gdi32 advapi32 ole32 shell32 comctl32 comdlg32 shlwapi msvcrt)
+
+#add_subdirectory(clb)
diff --git a/base/applications/regedt32/CMakeLists.txt b/base/applications/regedt32/CMakeLists.txt
new file mode 100644 (file)
index 0000000..3680709
--- /dev/null
@@ -0,0 +1,8 @@
+
+set_unicode()
+
+add_executable(regedt32 regedt32.c resource.rc)
+
+set_module_type(regedt32 win32gui)
+
+add_importlibs(regedt32 shell32 shlwapi msvcrt)
diff --git a/base/applications/sc/CMakeLists.txt b/base/applications/sc/CMakeLists.txt
new file mode 100644 (file)
index 0000000..62c99de
--- /dev/null
@@ -0,0 +1,22 @@
+
+set_unicode()
+add_definitions(-DDEFINE_GUID)
+
+list(APPEND SOURCE
+    control.c
+    create.c
+    delete.c
+    print.c
+    query.c
+    sc.c
+    start.c
+    usage.c
+    sc.rc)
+
+add_executable(sc ${CMAKE_CURRENT_BINARY_DIR}/sc_sc.h.gch ${SOURCE})
+
+add_pch(sc ${CMAKE_CURRENT_SOURCE_DIR}/sc.h ${SOURCE})
+
+set_module_type(sc win32cui)
+
+add_importlibs(sc advapi32 msvcrt)
diff --git a/base/applications/shutdown/CMakeLists.txt b/base/applications/shutdown/CMakeLists.txt
new file mode 100644 (file)
index 0000000..8315d88
--- /dev/null
@@ -0,0 +1,13 @@
+
+list(APPEND SOURCE
+    misc.c
+    shutdown.c
+    shutdown.rc)
+
+add_executable(shutdown ${CMAKE_CURRENT_BINARY_DIR}/shutdown_precomp.h.gch ${SOURCE})
+
+add_pch(shutdown ${CMAKE_CURRENT_SOURCE_DIR}/precomp.h ${SOURCE})
+
+set_module_type(shutdown win32cui)
+
+add_importlibs(shutdown advapi32 user32 msvcrt)
diff --git a/base/applications/sndrec32/CMakeLists.txt b/base/applications/sndrec32/CMakeLists.txt
new file mode 100644 (file)
index 0000000..5d0d7c2
--- /dev/null
@@ -0,0 +1,15 @@
+
+add_executable(sndrec32
+    audio_format.cpp
+    audio_membuffer.cpp
+    audio_producer.cpp
+    audio_receiver.cpp
+    audio_resampler_acm.cpp
+    audio_wavein.cpp
+    audio_waveout.cpp
+    sndrec32.cpp
+    rsrc.rc)
+
+set_module_type(sndrec32 win32gui)
+
+add_importlibs(sndrec32 winmm user32 msacm32 comctl32 comdlg32 gdi32 msvcrt)
diff --git a/base/applications/sndvol32/CMakeLists.txt b/base/applications/sndvol32/CMakeLists.txt
new file mode 100644 (file)
index 0000000..b2845bd
--- /dev/null
@@ -0,0 +1,16 @@
+
+set_unicode()
+
+list(APPEND SOURCE
+    misc.c
+    mixer.c
+    sndvol32.c
+    sndvol32.rc)
+
+add_executable(sndvol32 ${CMAKE_CURRENT_BINARY_DIR}/sndvol32_sndvol32.h.gch ${SOURCE})
+
+add_pch(sndvol32 ${CMAKE_CURRENT_SOURCE_DIR}/sndvol32.h ${SOURCE})
+
+set_module_type(sndvol32 win32gui)
+
+add_importlibs(sndvol32 user32 advapi32 gdi32 comctl32 shell32 winmm msvcrt)
diff --git a/base/applications/taskmgr/CMakeLists.txt b/base/applications/taskmgr/CMakeLists.txt
new file mode 100644 (file)
index 0000000..f9ca07a
--- /dev/null
@@ -0,0 +1,31 @@
+
+set_unicode()
+
+list(APPEND SOURCE
+    about.c
+    affinity.c
+    applpage.c
+    column.c
+    dbgchnl.c
+    debug.c
+    endproc.c
+    graph.c
+    optnmenu.c
+    perfdata.c
+    perfpage.c
+    priority.c
+    procpage.c
+    proclist.c
+    run.c
+    trayicon.c
+    taskmgr.c
+    graphctl.c
+    taskmgr.rc)
+
+add_executable(taskmgr ${CMAKE_CURRENT_BINARY_DIR}/taskmgr_precomp.h.gch ${SOURCE})
+
+add_pch(taskmgr ${CMAKE_CURRENT_SOURCE_DIR}/precomp.h ${SOURCE})
+
+set_module_type(taskmgr win32gui)
+
+add_importlibs(taskmgr advapi32 user32 gdi32 shell32 comctl32 msvcrt)
diff --git a/base/applications/winhlp32/CMakeLists.txt b/base/applications/winhlp32/CMakeLists.txt
new file mode 100644 (file)
index 0000000..ac59d1e
--- /dev/null
@@ -0,0 +1,21 @@
+include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
+
+add_definitions(-D__ROS_LONG64__)
+add_definitions(-D_CRT_NONSTDC_NO_DEPRECATE)
+add_definitions(-Dfileno=_fileno)
+add_definitions(-Disatty=_isatty)
+
+add_executable(winhlp32
+    callback.c
+    hlpfile.c
+    macro.c
+    string.c
+    winhelp.c
+    lex.yy.c
+    rsrc.rc)
+
+set_module_type(winhlp32 win32gui)
+
+target_link_libraries(winhlp32 wine)
+
+add_importlibs(winhlp32 user32 gdi32 shell32 comctl32 comdlg32 msvcrt)
diff --git a/base/applications/winver/CMakeLists.txt b/base/applications/winver/CMakeLists.txt
new file mode 100644 (file)
index 0000000..8de258c
--- /dev/null
@@ -0,0 +1,8 @@
+
+set_unicode()
+
+add_executable(winver winver.c)
+
+set_module_type(winver win32gui)
+
+add_importlibs(winver shell32 msvcrt)
diff --git a/base/applications/write/CMakeLists.txt b/base/applications/write/CMakeLists.txt
new file mode 100644 (file)
index 0000000..fcf2ed4
--- /dev/null
@@ -0,0 +1,8 @@
+
+set_unicode()
+
+add_executable(write write.c rsrc.rc)
+
+set_module_type(write win32gui)
+
+add_importlibs(write user32 gdi32 msvcrt)