[CMAKE]
[reactos.git] / reactos / dll / win32 / browseui / CMakeLists.txt
1
2 set_cpp(WITH_RUNTIME)
3
4 remove_definitions(-D_WIN32_WINNT=0x502)
5 add_definitions(-D_WIN32_WINNT=0x600)
6
7 include_directories(${REACTOS_SOURCE_DIR}/lib/atl)
8 spec2def(browseui.dll browseui.spec ADD_IMPORTLIB)
9
10 list(APPEND SOURCE
11 aclmulti.cpp
12 addressband.cpp
13 addresseditbox.cpp
14 bandproxy.cpp
15 bandsite.cpp
16 bandsitemenu.cpp
17 basebar.cpp
18 basebarsite.cpp
19 brandband.cpp
20 browseui.cpp
21 browseuiord.cpp
22 commonbrowser.cpp
23 globalfoldersettings.cpp
24 internettoolbar.cpp
25 regtreeoptions.cpp
26 shellbrowser.cpp
27 toolsband.cpp
28 travellog.cpp
29 utility.cpp
30 precomp.h)
31
32 add_library(browseui SHARED
33 ${SOURCE}
34 dllinstall.c
35 browseui.rc
36 ${CMAKE_CURRENT_BINARY_DIR}/browseui.def)
37
38 set_module_type(browseui win32dll UNICODE)
39 target_link_libraries(browseui atlnew uuid wine)
40 add_importlibs(browseui shlwapi shell32 comctl32 gdi32 ole32 oleaut32 user32 advapi32 msvcrt kernel32 ntdll)
41 add_pch(browseui precomp.h SOURCE)
42 add_cd_file(TARGET browseui DESTINATION reactos/system32 FOR all)
43
44 if(NOT MSVC)
45 if(NOT CMAKE_C_COMPILER_ID STREQUAL "Clang")
46 add_target_compile_flags(browseui "-Wno-unused-but-set-variable")
47 endif()
48
49 # Binutils linker bug
50 if(LTCG)
51 add_target_link_flags(browseui "-Wl,--allow-multiple-definition")
52 endif()
53 endif()