341fe672ae2ebcf4c23f69a55dd6edc8062069f0
[reactos.git] / dll / shellext / stobject / CMakeLists.txt
1
2 project(SHELL)
3
4 set_cpp(WITH_RUNTIME)
5
6 if(NOT MSVC)
7 # HACK: this should be enabled globally!
8 add_compile_flags_language("-std=c++11" "CXX")
9 endif()
10
11 include_directories(
12 ${REACTOS_SOURCE_DIR}/sdk/lib/atl
13 ${REACTOS_SOURCE_DIR})
14
15 add_definitions(
16 -D_ATL_NO_EXCEPTIONS)
17
18 spec2def(stobject.dll stobject.spec)
19
20 file(GLOB_RECURSE stobject_rc_deps resources/*.*)
21 add_rc_deps(stobject.rc ${stobject_rc_deps})
22
23 add_library(stobject SHARED
24 csystray.cpp
25 stobject.cpp
26 stobject.rc
27 hotplug.cpp
28 power.cpp
29 volume.cpp
30 ${CMAKE_CURRENT_BINARY_DIR}/stobject.def)
31
32 set_module_type(stobject win32dll UNICODE)
33 target_link_libraries(stobject uuid wine atlnew)
34
35 add_importlibs(stobject
36 setupapi
37 advapi32
38 winmm
39 ole32
40 oleaut32
41 powrprof
42 shlwapi
43 shell32
44 comctl32
45 msvcrt
46 gdi32
47 user32
48 kernel32
49 ntdll)
50
51 add_cd_file(TARGET stobject DESTINATION reactos/system32 FOR all)