#jgardou
#set_cpp()
-add_definitions(-DWIN32)
-add_definitions(-D__WINDRES__)
+add_definitions(
+ -DWIN32
+ -D__WINDRES__
+ -D_DLL -D__USE_CRTIMP)
#add_pch(explorer ${CMAKE_CURRENT_SOURCE_DIR}/precomp.h SOURCE)
include_directories(${CMAKE_CURRENT_SOURCE_DIR})
utility/dragdropimpl.cpp
utility/utility.cpp
utility/xmlstorage.cpp
- utility/splitpath.c
+# utility/splitpath.c msvcrt has _wsplitpath already
utility/window.cpp
utility/shellbrowserimpl.cpp) # utility/shelltests.cpp
wine
mingw_wmain
mingw_common
- uuid
- -ladvapi32
- -lgdi32
- -luser32
- -lws2_32
- -lmsimg32
- -lcomctl32
- -lole32
- -loleaut32
- -lshell32
- -lnotifyhook
- -lmsvcrt
- -lkernel32
- -lntdll)
-
+ uuid)
+
+add_importlibs(explorer advapi32 gdi32 user32 ws2_32 msimg32 comctl32 ole32 oleaut32 shell32 notifyhook msvcrt kernel32 ntdll)
+
set_image_base(explorer 0x00400000)
-add_dependencies(explorer psdk buildno_header)
-add_cab_target(explorer 4)
\ No newline at end of file
+add_dependencies(explorer psdk)
+add_cd_file(TARGET explorer DESTINATION reactos FOR all)
+add_cd_file(FILE ${CMAKE_CURRENT_SOURCE_DIR}/explorer-cfg-template.xml DESTINATION reactos FOR all)