- Fix usetup build.

svn path=/branches/cmake-bringup/; revision=48760
This commit is contained in:
Amine Khaldi 2010-09-12 19:38:21 +00:00
parent 24906fcdfc
commit d95f9d3190

View 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_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") 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 add_executable(usetup WIN32
interface/usetup.c interface/usetup.c
interface/devinst.c interface/devinst.c
@ -26,10 +30,13 @@ add_executable(usetup WIN32
progress.c progress.c
registry.c registry.c
settings.c settings.c
) usetup.rc)
include_directories(${REACTOS_SOURCE_DIR}/lib/newinflib) target_link_libraries(usetup
include_directories(${REACTOS_SOURCE_DIR}/lib/3rdparty/zlib) mingw_main
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/drivers) zlib
target_link_libraries(usetup mingw_main zlib newinflib ext2lib vfatlib ${REACTOS_SOURCE_DIR}/dll/ntdll/libntdll.a newinflib
mingw_common -lmsvcrt) ext2lib
vfatlib
mingw_common
-lmsvcrt)