From b434a6b0487e1727531de74e287c0a25a22d2c01 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Gardou?= Date: Thu, 15 Sep 2011 20:14:34 +0000 Subject: [PATCH] [CMAKE] - start documenting reactos specific stuff. Feel free to complete it :-) svn path=/trunk/; revision=53715 --- .../cmake/writing_CmakeLists_for_ReactOS.txt | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 reactos/cmake/writing_CmakeLists_for_ReactOS.txt diff --git a/reactos/cmake/writing_CmakeLists_for_ReactOS.txt b/reactos/cmake/writing_CmakeLists_for_ReactOS.txt new file mode 100644 index 00000000000..004ec0016c7 --- /dev/null +++ b/reactos/cmake/writing_CmakeLists_for_ReactOS.txt @@ -0,0 +1,22 @@ +CMake is used to build rectos. + +Here you will find what you'll need to write nice CMakeLists.txt files for ReactOS. +CMake standard functions are available too. See http://www.cmake.org/, or type cmake --help-html in your shell to get the full documentation. + +Optional arguments are marked with [brackets], input is marked with . + +--------------------------------------------------------------------------------------------------------------------------------------------- +set_module_type( [UNICODE] [BASEADDRESS ] [ENTRYPOINT ]) + +This set the type of the module, and take cares of setting common linker options or definitions to the specified target, module file extension, etc. Please always use this when adding a module to reactos build. + +ARGUMENTS : + : name of the target. The module must have been added with add_executable or add_library before calling this function. + : one of win32gui, win32cui, win32dll, win32ocx, cpl, nativecui, nativedll, kernelmodedriver +UNICODE : provide this if the module was written for unicode API + : provide this if you want your module to have a different base address than the defualt one (according to ). For win32dll modules, please use baseaddress.cmake instead. + : name of the function which will be the entr point of the module. If it's not provided, it's guessed from the module type. + : Size of stack required for the parameters of . + +TYPICAL USE : +set_module_type(msvcrt win32dll ENTRYPOINT DllMain 12)