[CMAKE]
authorAmine Khaldi <amine.khaldi@reactos.org>
Sun, 12 Sep 2010 19:38:21 +0000 (19:38 +0000)
committerAmine Khaldi <amine.khaldi@reactos.org>
Sun, 12 Sep 2010 19:38:21 +0000 (19:38 +0000)
- Fix usetup build.

svn path=/branches/cmake-bringup/; revision=48760

base/setup/usetup/CMakeLists.txt

index 033c972..9b74693 100644 (file)
@@ -2,6 +2,10 @@
 set(CMAKE_C_LINK_EXECUTABLE "<CMAKE_C_COMPILER> <FLAGS> <CMAKE_C_LINK_FLAGS> <LINK_FLAGS> <OBJECTS> -o <TARGET> <LINK_LIBRARIES> -Wl,-L${REACTOS_BINARY_DIR}/lib/3rdparty/mingw")
 set(CMAKE_EXE_LINKER_FLAGS "-nodefaultlibs -nostdlib -Wl,-entry,_NtProcessStartup -Wl,--enable-stdcall-fixup -Wl,--enable-auto-image-base -Wl,--kill-at -Wl,-T,${REACTOS_SOURCE_DIR}/global.lds")
 
+include_directories(${REACTOS_SOURCE_DIR}/lib/newinflib)
+include_directories(${REACTOS_SOURCE_DIR}/lib/3rdparty/zlib)
+include_directories(${REACTOS_SOURCE_DIR}/include/reactos/drivers)
+
 add_executable(usetup WIN32
     interface/usetup.c
     interface/devinst.c
@@ -26,10 +30,13 @@ add_executable(usetup WIN32
     progress.c
     registry.c
     settings.c
-)
+    usetup.rc)
 
-include_directories(${REACTOS_SOURCE_DIR}/lib/newinflib)
-include_directories(${REACTOS_SOURCE_DIR}/lib/3rdparty/zlib)
-include_directories(${REACTOS_SOURCE_DIR}/include/reactos/drivers)
-target_link_libraries(usetup mingw_main zlib newinflib ext2lib vfatlib ${REACTOS_SOURCE_DIR}/dll/ntdll/libntdll.a
-                      mingw_common -lmsvcrt)
+target_link_libraries(usetup
+    mingw_main
+    zlib
+    newinflib
+    ext2lib
+    vfatlib
+    mingw_common
+    -lmsvcrt)