[BROWSEUI] Implement ACLCustomMRU.
[reactos.git] / dll / win32 / browseui / CMakeLists.txt
1 PROJECT(SHELL)
2
3 add_subdirectory(shellbars)
4
5 set_cpp(WITH_RUNTIME)
6
7 add_definitions(
8 -D_ATL_NO_EXCEPTIONS)
9
10 include_directories(${REACTOS_SOURCE_DIR}/sdk/lib/atl)
11 spec2def(browseui.dll browseui.spec ADD_IMPORTLIB)
12
13 list(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
40 add_library(browseui SHARED
41 ${SOURCE}
42 dllinstall.c
43 browseui.rc
44 ${CMAKE_CURRENT_BINARY_DIR}/browseui.def)
45
46 set_module_type(browseui win32dll UNICODE)
47 target_link_libraries(browseui shellbars atlnew uuid wine)
48 add_importlibs(browseui shlwapi shell32 comctl32 gdi32 ole32 oleaut32 user32 advapi32 msvcrt kernel32 ntdll)
49 add_pch(browseui precomp.h SOURCE)
50 add_cd_file(TARGET browseui DESTINATION reactos/system32 FOR all)
51
52 if(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()
58 endif()
59
60 add_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
66 add_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")