[BROWSEUI]
[reactos.git] / reactos / dll / win32 / browseui / CMakeLists.txt
1
2 set_cpp()
3
4 add_definitions(
5 -D__WINESRC__
6 -DROS_Headers)
7
8 if (MSVC)
9 add_compile_flags("/EHa-")
10 endif()
11
12 remove_definitions(-D_WIN32_WINNT=0x502)
13 add_definitions(-D_WIN32_WINNT=0x600)
14
15 include_directories(${REACTOS_SOURCE_DIR}/lib/atl)
16
17 spec2def(browseui.dll browseui.spec)
18
19 list(APPEND SOURCE
20 aclmulti.cpp
21 addressband.cpp
22 addresseditbox.cpp
23 bandproxy.cpp
24 bandsite.cpp
25 bandsitemenu.cpp
26 basebar.cpp
27 basebarsite.cpp
28 brandband.cpp
29 browseui.cpp
30 browseuiord.cpp
31 commonbrowser.cpp
32 globalfoldersettings.cpp
33 internettoolbar.cpp
34 regtreeoptions.cpp
35 shellbrowser.cpp
36 toolsband.cpp
37 travellog.cpp
38 utility.cpp
39 dllinstall.c
40 ${CMAKE_CURRENT_BINARY_DIR}/browseui.def)
41
42 add_library(browseui SHARED
43 ${SOURCE}
44 browseui.rc)
45
46 if(NOT MSVC)
47 # FIXME: http://www.cmake.org/Bug/view.php?id=12998
48 #allow_warnings(browseui)
49 set_source_files_properties(${SOURCE} PROPERTIES COMPILE_FLAGS "-Wno-error")
50 endif()
51
52 set_module_type(browseui win32dll UNICODE)
53
54 target_link_libraries(browseui
55 atlnew
56 uuid
57 wine)
58
59 add_importlibs(browseui
60 shlwapi
61 shell32
62 comctl32
63 gdi32
64 ole32
65 oleaut32
66 user32
67 advapi32
68 msvcrt
69 kernel32
70 ntdll)
71
72 add_pch(browseui precomp.h)
73 add_cd_file(TARGET browseui DESTINATION reactos/system32 FOR all)
74