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