1project(MSPAINT)
2
3add_definitions(-DINITGUID)
4
5if(DBG)
6    add_definitions(-D_DEBUG=1) # CORE-17505
7endif()
8
9list(APPEND SOURCE
10    dialogs.cpp
11    dib.cpp
12    drawing.cpp
13    fullscreen.cpp
14    history.cpp
15    imgarea.cpp
16    main.cpp
17    miniature.cpp
18    mouse.cpp
19    palette.cpp
20    palettemodel.cpp
21    registry.cpp
22    scrollbox.cpp
23    selection.cpp
24    selectionmodel.cpp
25    sizebox.cpp
26    textedit.cpp
27    toolbox.cpp
28    toolsettings.cpp
29    toolsmodel.cpp
30    winproc.cpp
31    precomp.h)
32
33file(GLOB mspaint_rc_deps icons/*.*)
34add_rc_deps(rsrc.rc ${mspaint_rc_deps})
35add_executable(mspaint ${SOURCE} rsrc.rc)
36set_module_type(mspaint win32gui UNICODE)
37target_link_libraries(mspaint uuid cpprt atl_classes)
38set_target_cpp_properties(mspaint WITH_EXCEPTIONS)
39add_importlibs(mspaint hhctrl comdlg32 shell32 user32 gdi32 advapi32 comctl32 msvcrt kernel32 rpcrt4 shlwapi ntdll)
40add_pch(mspaint precomp.h SOURCE)
41add_cd_file(TARGET mspaint DESTINATION reactos/system32 FOR all)
42