[CRT] Massively improve performance of rand_s
[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 list(APPEND SOURCE
24 csystray.cpp
25 stobject.cpp
26 hotplug.cpp
27 power.cpp
28 volume.cpp
29 precomp.h)
30
31 add_library(stobject MODULE
32 ${SOURCE}
33 stobject.rc
34 ${CMAKE_CURRENT_BINARY_DIR}/stobject.def)
35
36 set_module_type(stobject win32dll UNICODE)
37 target_link_libraries(stobject uuid wine)
38
39 add_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
55 add_pch(stobject precomp.h SOURCE)
56 add_cd_file(TARGET stobject DESTINATION reactos/system32 FOR all)