Author: jgardou
Date: Tue Oct 26 07:31:04 2010
New Revision: 49279
URL:
http://svn.reactos.org/svn/reactos?rev=49279&view=rev
Log:
[CMAKE - MSC]
- Add set_image_base macro
- add psdk and buildno dependencies to modules
Modified:
branches/cmake-bringup/msc.cmake
Modified: branches/cmake-bringup/msc.cmake
URL:
http://svn.reactos.org/svn/reactos/branches/cmake-bringup/msc.cmake?rev=492…
==============================================================================
--- branches/cmake-bringup/msc.cmake [iso-8859-1] (original)
+++ branches/cmake-bringup/msc.cmake [iso-8859-1] Tue Oct 26 07:31:04 2010
@@ -39,6 +39,15 @@
set_target_properties(${MODULE} PROPERTIES LINK_FLAGS ${NEW_LINKER_FLAGS})
endmacro()
+macro(set_image_base MODULE IMAGE_BASE)
+ set(NEW_LINKER_FLAGS "/BASE:${IMAGE_BASE}")
+ get_target_property(LINKER_FLAGS ${MODULE} LINK_FLAGS)
+ if(LINKER_FLAGS)
+ set(NEW_LINKER_FLAGS "${LINKER_FLAGS} ${NEW_LINKER_FLAGS}")
+ endif()
+ set_target_properties(${MODULE} PROPERTIES LINK_FLAGS ${NEW_LINKER_FLAGS})
+endmacro()
+
macro(add_importlibs MODULE)
foreach(LIB ${ARGN})
target_link_libraries(${MODULE} ${LIB}.LIB)
@@ -46,6 +55,7 @@
endmacro()
macro(set_module_type MODULE TYPE)
+ add_dependencies(${MODULE} psdk buildno_header)
if(${TYPE} MATCHES nativecui)
set_subsystem(${MODULE} native)
add_importlibs(${MODULE} ntdll)