mirror of
https://github.com/reactos/reactos.git
synced 2025-01-11 00:30:58 +00:00
[CMAKE]
- Fix usetup build. svn path=/branches/cmake-bringup/; revision=48760
This commit is contained in:
parent
24906fcdfc
commit
d95f9d3190
1 changed files with 13 additions and 6 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue