[DEVMGR]
[reactos.git] / reactos / dll / win32 / devmgr_new / CMakeLists.txt
1 PROJECT(DEVMGR)
2
3 spec2def(devmgr.dll devmgr.spec ADD_IMPORTLIB)
4
5 set_cpp(WITH_RTTI WITH_RUNTIME WITH_EXCEPTIONS)
6
7 if(NOT MSVC)
8 # HACK: this should be enabled globally!
9 add_compile_flags_language("-std=c++11" "CXX")
10 endif()
11
12 include_directories(
13 ${REACTOS_SOURCE_DIR}/include/reactos/dll
14 ${REACTOS_SOURCE_DIR}/lib/atl
15 includes)
16
17 list(APPEND SOURCE
18 precomp.h
19 api.cpp
20 properties/advprop.cpp
21 properties/devprblm.cpp
22 properties/hwpage.cpp
23 properties/hwresource.cpp
24 properties/misc.cpp
25 devmgmt/ClassNode.cpp
26 devmgmt/DeviceNode.cpp
27 devmgmt/DeviceView.cpp
28 devmgmt/MainWindow.cpp
29 devmgmt/Node.cpp
30 devmgmt/RootNode.cpp)
31
32 add_library(devmgr SHARED
33 ${SOURCE}
34 devmgr.rc
35 ${CMAKE_CURRENT_BINARY_DIR}/devmgr.def)
36
37 set_module_type(devmgr win32dll UNICODE)
38 target_link_libraries(devmgr uuid atlnew wine)
39 add_importlibs(devmgr setupapi advapi32 newdev user32 gdi32 comctl32 version msvcrt kernel32 ole32 uxtheme ntdll)
40 add_pch(devmgr precomp.h SOURCE)
41 add_cd_file(TARGET devmgr DESTINATION reactos/system32 FOR all)