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
15add_definitions(
16    -D_ATL_NO_EXCEPTIONS)
17
18spec2def(stobject.dll stobject.spec)
19
20file(GLOB_RECURSE stobject_rc_deps resources/*.*)
21add_rc_deps(stobject.rc ${stobject_rc_deps})
22
23list(APPEND SOURCE
24    csystray.cpp
25    stobject.cpp
26    hotplug.cpp
27    power.cpp
28    volume.cpp
29    precomp.h)
30
31add_library(stobject SHARED
32    ${SOURCE}
33    stobject.rc
34    ${CMAKE_CURRENT_BINARY_DIR}/stobject.def)
35
36set_module_type(stobject win32dll UNICODE)
37target_link_libraries(stobject uuid wine atlnew)
38
39add_importlibs(stobject
40    setupapi
41    advapi32
42    winmm
43    ole32
44    oleaut32
45    powrprof
46    shlwapi
47    shell32
48    comctl32
49    msvcrt
50    gdi32
51    user32
52    kernel32
53    ntdll)
54
55add_pch(stobject precomp.h SOURCE)
56add_cd_file(TARGET stobject DESTINATION reactos/system32 FOR all)
57