1PROJECT(SHELL) 2 3add_subdirectory(shellbars) 4 5set_cpp(WITH_RUNTIME) 6 7add_definitions( 8 -D_ATL_NO_EXCEPTIONS) 9 10include_directories(${REACTOS_SOURCE_DIR}/sdk/lib/atl) 11spec2def(browseui.dll browseui.spec ADD_IMPORTLIB) 12 13list(APPEND SOURCE 14 ACLCustomMRU.cpp 15 ACLCustomMRU.h 16 aclistisf.cpp 17 aclmulti.cpp 18 addressband.cpp 19 addresseditbox.cpp 20 bandproxy.cpp 21 basebarsite.cpp 22 brandband.cpp 23 browseui.cpp 24 browseuiord.cpp 25 CAutoComplete.cpp 26 commonbrowser.cpp 27 desktopipc.cpp 28 explorerband.cpp 29 globalfoldersettings.cpp 30 internettoolbar.cpp 31 parsecmdline.cpp 32 regtreeoptions.cpp 33 shellbrowser.cpp 34 toolsband.cpp 35 travellog.cpp 36 utility.cpp 37 CProgressDialog.cpp 38 precomp.h) 39 40add_library(browseui SHARED 41 ${SOURCE} 42 dllinstall.c 43 browseui.rc 44 ${CMAKE_CURRENT_BINARY_DIR}/browseui.def) 45 46set_module_type(browseui win32dll UNICODE) 47target_link_libraries(browseui shellbars atlnew uuid wine) 48add_importlibs(browseui uxtheme shlwapi shell32 comctl32 gdi32 ole32 oleaut32 user32 advapi32 msvcrt kernel32 ntdll) 49add_pch(browseui precomp.h SOURCE) 50add_cd_file(TARGET browseui DESTINATION reactos/system32 FOR all) 51 52if(NOT MSVC) 53 add_target_compile_flags(browseui "-Wno-unused-but-set-variable") 54 # Binutils linker bug 55 if(LTCG) 56 add_target_link_flags(browseui "-Wl,--allow-multiple-definition") 57 endif() 58endif() 59 60add_custom_command(TARGET browseui POST_BUILD 61 COMMAND "${CMAKE_COMMAND}" -E copy 62 "$<TARGET_FILE:browseui>" 63 "$<TARGET_FILE_DIR:filebrowser>/$<TARGET_FILE_NAME:browseui>" 64 COMMENT "Copying to output directory") 65 66add_custom_command(TARGET browseui POST_BUILD 67 COMMAND "${CMAKE_COMMAND}" -E copy 68 "$<TARGET_FILE:browseui>" 69 "$<TARGET_FILE_DIR:filebrowser>/$<TARGET_FILE_NAME:browseui>" 70 COMMENT "Copying to output directory") 71