1PROJECT(DEVMGR) 2 3spec2def(devmgr.dll devmgr.spec ADD_IMPORTLIB) 4 5set_cpp(WITH_RTTI WITH_RUNTIME WITH_EXCEPTIONS) 6 7if(NOT MSVC) 8 # HACK: this should be enabled globally! 9 add_compile_flags_language("-std=c++11" "CXX") 10endif() 11 12include_directories( 13 ${REACTOS_SOURCE_DIR}/sdk/include/reactos/dll 14 ${REACTOS_SOURCE_DIR}/sdk/lib/atl 15 includes) 16 17list(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 32add_library(devmgr MODULE 33 ${SOURCE} 34 devmgr.rc 35 ${CMAKE_CURRENT_BINARY_DIR}/devmgr.def) 36 37set_module_type(devmgr win32dll UNICODE) 38target_link_libraries(devmgr uuid wine) 39add_importlibs(devmgr setupapi advapi32 newdev user32 gdi32 comctl32 version msvcrt kernel32 ole32 oleaut32 uxtheme ntdll) 40add_pch(devmgr precomp.h SOURCE) 41add_cd_file(TARGET devmgr DESTINATION reactos/system32 FOR all) 42