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