1 2spec2def(main.cpl main.spec) 3 4list(APPEND SOURCE 5 keyboard.c 6 main.c 7 mouse.c 8 main.h) 9 10file(GLOB main_rc_deps resources/*.*) 11add_rc_deps(main.rc ${main_rc_deps}) 12 13add_library(main MODULE 14 ${SOURCE} 15 main.rc 16 ${CMAKE_CURRENT_BINARY_DIR}/main.def) 17 18set_module_type(main cpl UNICODE) 19target_link_libraries(main uuid) 20add_importlibs(main advapi32 user32 comctl32 devmgr comdlg32 shell32 gdi32 msvcrt kernel32) 21add_pch(main main.h SOURCE) 22add_cd_file(TARGET main DESTINATION reactos/system32 FOR all) 23