mirror of
https://github.com/reactos/reactos.git
synced 2024-11-11 01:04:11 +00:00
30 lines
477 B
Text
30 lines
477 B
Text
|
|
||
|
set_unicode()
|
||
|
|
||
|
add_definitions(-D_DLL -D__USE_CRTIMP)
|
||
|
|
||
|
spec2def(main ${CMAKE_CURRENT_SOURCE_DIR}/main.spec ${CMAKE_CURRENT_BINARY_DIR}/main.def)
|
||
|
|
||
|
add_library(main SHARED
|
||
|
keyboard.c
|
||
|
main.c
|
||
|
mouse.c
|
||
|
main.rc)
|
||
|
|
||
|
set_module_type(main cpl)
|
||
|
|
||
|
target_link_libraries(main ${CMAKE_CURRENT_BINARY_DIR}/main.def)
|
||
|
|
||
|
add_importlibs(main
|
||
|
msvcrt
|
||
|
advapi32
|
||
|
user32
|
||
|
comctl32
|
||
|
devmgr
|
||
|
comdlg32
|
||
|
shell32
|
||
|
gdi32
|
||
|
kernel32)
|
||
|
|
||
|
add_dependencies(main main_def)
|