mirror of
https://github.com/reactos/reactos.git
synced 2025-03-10 18:24:02 +00:00

- add macros add_cab and add_cab_target to add files to reactos.dff - add bootcd target - make use of these macros to create bootcd and livecd Bootcd works and install things, but 2nd stage fails booting. We need debug symbols!!! svn path=/branches/cmake-bringup/; revision=49347
30 lines
500 B
CMake
30 lines
500 B
CMake
|
|
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)
|
|
add_cab_target(main 1)
|