1c2c66affSColin FinckPROJECT(SHELL) 2c2c66affSColin Finck 3c2c66affSColin Finckadd_subdirectory(shellbars) 44212f4b1SBrock Mammenadd_subdirectory(shellfind) 5c2c66affSColin Finck 6c2c66affSColin Finckspec2def(browseui.dll browseui.spec ADD_IMPORTLIB) 7c2c66affSColin Finck 8c2c66affSColin Fincklist(APPEND SOURCE 9ad181d89SMark Jansen ACLCustomMRU.cpp 10ad181d89SMark Jansen ACLCustomMRU.h 11ab7d8f36SKatayama Hirofumi MZ aclhistory.cpp 12c2c66affSColin Finck aclistisf.cpp 13c2c66affSColin Finck aclmulti.cpp 14c2c66affSColin Finck addressband.cpp 15c2c66affSColin Finck addresseditbox.cpp 16c2c66affSColin Finck bandproxy.cpp 17c2c66affSColin Finck basebarsite.cpp 18c2c66affSColin Finck brandband.cpp 19c2c66affSColin Finck browseui.cpp 20c2c66affSColin Finck browseuiord.cpp 21c2c66affSColin Finck CAutoComplete.cpp 22d5132f5cSOleg Dubinskiy CShellTaskScheduler.cpp 23d5132f5cSOleg Dubinskiy CShellTaskScheduler.h 24c8f216eaSMark Jansen CTaskbarList.cpp 25c8f216eaSMark Jansen CTaskbarList.h 26c2c66affSColin Finck commonbrowser.cpp 27c2c66affSColin Finck desktopipc.cpp 28c2c66affSColin Finck globalfoldersettings.cpp 29c2c66affSColin Finck internettoolbar.cpp 30c2c66affSColin Finck parsecmdline.cpp 31c2c66affSColin Finck regtreeoptions.cpp 32*43b3dc20SCarl J. Bialorucki settings.cpp 33c2c66affSColin Finck shellbrowser.cpp 34c2c66affSColin Finck toolsband.cpp 35c2c66affSColin Finck travellog.cpp 361f5e0f3fSOleg Dubinskiy CProgressDialog.cpp 371f5e0f3fSOleg Dubinskiy CUserAssist.cpp 381f5e0f3fSOleg Dubinskiy CUserAssist.h) 39139a3d66SAmine Khaldi 40139a3d66SAmine Khaldilist(APPEND PCH_SKIP_SOURCE 41139a3d66SAmine Khaldi dllinstall.c) 42c2c66affSColin Finck 4323373acbSJérôme Gardouadd_library(browseui MODULE 44c2c66affSColin Finck ${SOURCE} 45139a3d66SAmine Khaldi ${PCH_SKIP_SOURCE} 46c2c66affSColin Finck browseui.rc 47c2c66affSColin Finck ${CMAKE_CURRENT_BINARY_DIR}/browseui.def) 48c2c66affSColin Finck 49c2c66affSColin Finckset_module_type(browseui win32dll UNICODE) 50907025a0SJérôme Gardoutarget_link_libraries(browseui shellbars shellfind uuid wine cpprt atl_classes) 517e18b6d0SJared Smuddeadd_importlibs(browseui uxtheme shlwapi shell32 comctl32 gdi32 ole32 oleaut32 user32 advapi32 mpr msvcrt kernel32 ntdll) 52139a3d66SAmine Khaldiadd_pch(browseui precomp.h "${PCH_SKIP_SOURCE}") 53c2c66affSColin Finckadd_cd_file(TARGET browseui DESTINATION reactos/system32 FOR all) 54c2c66affSColin Finck 5574ec94e1SVictor Perevertkinif(CMAKE_C_COMPILER_ID STREQUAL "GNU") 5674ec94e1SVictor Perevertkin target_compile_options(browseui PRIVATE -Wno-unused-but-set-variable) 5774ec94e1SVictor Perevertkinendif() 5874ec94e1SVictor Perevertkin 59c2c66affSColin Finckif(NOT MSVC) 60c2c66affSColin Finck # Binutils linker bug 61c2c66affSColin Finck if(LTCG) 628e1fa034SVictor Perevertkin target_link_options(browseui PRIVATE "-Wl,--allow-multiple-definition") 63c2c66affSColin Finck endif() 64c2c66affSColin Finckendif() 65c2c66affSColin Finck 66c2c66affSColin Finckadd_custom_command(TARGET browseui POST_BUILD 67c2c66affSColin Finck COMMAND "${CMAKE_COMMAND}" -E copy 68c2c66affSColin Finck "$<TARGET_FILE:browseui>" 69c2c66affSColin Finck "$<TARGET_FILE_DIR:filebrowser>/$<TARGET_FILE_NAME:browseui>" 70c2c66affSColin Finck COMMENT "Copying to output directory") 71