3681a2f04322e73843e9556da566178f95a643e1
[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 CTaskbarList.cpp
27 CTaskbarList.h
28 commonbrowser.cpp
29 desktopipc.cpp
30 explorerband.cpp
31 globalfoldersettings.cpp
32 internettoolbar.cpp
33 parsecmdline.cpp
34 regtreeoptions.cpp
35 shellbrowser.cpp
36 toolsband.cpp
37 travellog.cpp
38 utility.cpp
39 CProgressDialog.cpp
40 precomp.h)
41
42 add_library(browseui MODULE
43 ${SOURCE}
44 dllinstall.c
45 browseui.rc
46 ${CMAKE_CURRENT_BINARY_DIR}/browseui.def)
47
48 set_module_type(browseui win32dll UNICODE)
49 target_link_libraries(browseui shellbars uuid wine)
50 add_importlibs(browseui uxtheme shlwapi shell32 comctl32 gdi32 ole32 oleaut32 user32 advapi32 msvcrt kernel32 ntdll)
51 add_pch(browseui precomp.h SOURCE)
52 add_cd_file(TARGET browseui DESTINATION reactos/system32 FOR all)
53
54 if(NOT MSVC)
55 add_target_compile_flags(browseui "-Wno-unused-but-set-variable")
56 # Binutils linker bug
57 if(LTCG)
58 add_target_link_flags(browseui "-Wl,--allow-multiple-definition")
59 endif()
60 endif()
61
62 add_custom_command(TARGET browseui POST_BUILD
63 COMMAND "${CMAKE_COMMAND}" -E copy
64 "$<TARGET_FILE:browseui>"
65 "$<TARGET_FILE_DIR:filebrowser>/$<TARGET_FILE_NAME:browseui>"
66 COMMENT "Copying to output directory")