[STOBJECT]
[reactos.git] / reactos / 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 spec2def(stobject.dll stobject.spec)
16
17 file(GLOB_RECURSE stobject_rc_deps resources/*.*)
18 add_rc_deps(stobject.rc ${stobject_rc_deps})
19
20 add_library(stobject SHARED
21 csystray.cpp
22 stobject.cpp
23 stobject.rc
24 power.cpp
25 volume.cpp
26 ${CMAKE_CURRENT_BINARY_DIR}/stobject.def)
27
28 set_module_type(stobject win32dll UNICODE)
29 target_link_libraries(stobject uuid wine atlnew)
30
31 add_importlibs(stobject
32 advapi32
33 winmm
34 ole32
35 oleaut32
36 shlwapi
37 shell32
38 comctl32
39 msvcrt
40 gdi32
41 user32
42 kernel32
43 ntdll)
44
45 add_cd_file(TARGET stobject DESTINATION reactos/system32 FOR all)