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