[BROWSEUI]
[reactos.git] / dll / win32 / browseui / CMakeLists.txt
1 PROJECT(SHELL)
2
3 set_cpp(WITH_RUNTIME)
4
5 remove_definitions(-D_WIN32_WINNT=0x502)
6 add_definitions(-D_WIN32_WINNT=0x600)
7
8 include_directories(${REACTOS_SOURCE_DIR}/lib/atl)
9
10 spec2def(browseui.dll browseui.spec ADD_IMPORTLIB)
11
12 list(APPEND SOURCE
13 aclmulti.cpp
14 addressband.cpp
15 addresseditbox.cpp
16 bandproxy.cpp
17 bandsite.cpp
18 bandsitemenu.cpp
19 basebar.cpp
20 basebarsite.cpp
21 brandband.cpp
22 browseui.cpp
23 browseuiord.cpp
24 commonbrowser.cpp
25 globalfoldersettings.cpp
26 internettoolbar.cpp
27 regtreeoptions.cpp
28 shellbrowser.cpp
29 toolsband.cpp
30 travellog.cpp
31 utility.cpp
32 precomp.h)
33
34 add_library(browseui SHARED
35 ${SOURCE}
36 dllinstall.c
37 browseui.rc
38 ${CMAKE_CURRENT_BINARY_DIR}/browseui.def)
39
40 set_module_type(browseui win32dll UNICODE)
41
42 target_link_libraries(browseui
43 atlnew
44 uuid
45 wine)
46
47 add_importlibs(browseui
48 shlwapi
49 shell32
50 comctl32
51 gdi32
52 ole32
53 oleaut32
54 user32
55 advapi32
56 msvcrt
57 kernel32
58 ntdll)
59
60 add_pch(browseui precomp.h SOURCE)
61 add_cd_file(TARGET browseui DESTINATION reactos/system32 FOR all)
62
63 add_custom_command(TARGET browseui POST_BUILD
64 COMMAND "${CMAKE_COMMAND}" -E copy
65 "$<TARGET_FILE:browseui>"
66 "$<TARGET_FILE_DIR:filebrowser>/$<TARGET_FILE_NAME:browseui>"
67 COMMENT "Copying to output directory")
68
69 add_custom_command(TARGET browseui POST_BUILD
70 COMMAND "${CMAKE_COMMAND}" -E copy
71 "$<TARGET_FILE:browseui>"
72 "$<TARGET_FILE_DIR:filebrowser>/$<TARGET_FILE_NAME:browseui>"
73 COMMENT "Copying to output directory")