[CMAKE]
[reactos.git] / dll / win32 / userenv / CMakeLists.txt
1
2 spec2def(userenv.dll userenv.spec)
3
4 set_rc_compiler()
5
6 list(APPEND SOURCE
7 desktop.c
8 directory.c
9 environment.c
10 gpolicy.c
11 misc.c
12 profile.c
13 registry.c
14 setup.c
15 userenv.c
16 userenv.rc
17 ${CMAKE_CURRENT_BINARY_DIR}/userenv_stubs.c
18 ${CMAKE_CURRENT_BINARY_DIR}/userenv.def)
19
20 add_library(userenv SHARED
21 ${CMAKE_CURRENT_BINARY_DIR}/userenv_precomp.h.gch
22 ${SOURCE})
23
24 set_module_type(userenv win32dll)
25
26 target_link_libraries(userenv uuid)
27
28 add_importlibs(userenv advapi32 user32 msvcrt kernel32 ntdll)
29 add_pch(userenv ${CMAKE_CURRENT_SOURCE_DIR}/precomp.h ${SOURCE})
30
31 add_cd_file(TARGET userenv DESTINATION reactos/system32)
32 add_importlib_target(userenv.spec)