reactos/dll/cpl/main/CMakeLists.txt
Stanislav Motylkov a69b0c9fd5 [MAIN] Fix icon identifiers and their order
Additionally:
- Reuse printers and fonts folder icons from shell32,
  the same way as it was done in c0dbde0436.
  The printers folder icon was missing here though.
- Fix "look_key" => "lock_key" typos.

This fixes Administrative Tools and Fonts Folder icons in Control Panel
when being restored to defaults with Stardock IconPackager 5.1.

CORE-19471
2024-03-06 19:18:18 +03:00

23 lines
632 B
CMake

spec2def(main.cpl main.spec)
list(APPEND SOURCE
keyboard.c
main.c
mouse.c
main.h)
set(ICONS_DIR ${CMAKE_CURRENT_SOURCE_DIR}/../../win32/shell32/res/icons)
file(GLOB main_rc_deps resources/*.* ${ICONS_DIR}/38.ico ${ICONS_DIR}/39.ico)
add_rc_deps(main.rc ${main_rc_deps})
add_library(main MODULE
${SOURCE}
main.rc
${CMAKE_CURRENT_BINARY_DIR}/main.def)
set_module_type(main cpl UNICODE)
target_link_libraries(main uuid)
add_importlibs(main advapi32 user32 comctl32 devmgr comdlg32 shell32 gdi32 msvcrt kernel32)
add_pch(main main.h SOURCE)
add_cd_file(TARGET main DESTINATION reactos/system32 FOR all)