project(SHELL) set_cpp(WITH_RUNTIME) if(NOT MSVC) # HACK: this should be enabled globally! add_compile_flags_language("-std=c++11" "CXX") endif() include_directories( ${REACTOS_SOURCE_DIR}/lib/atl ${REACTOS_SOURCE_DIR}) spec2def(ntobjshex.dll ntobjshex.spec) add_library(ntobjshex SHARED ntobjns.cpp ntobjshex.cpp ntobjutil.cpp ntobjshex.rc regfolder.cpp ${CMAKE_CURRENT_BINARY_DIR}/ntobjshex.def) list(APPEND atl_rc_deps ${CMAKE_CURRENT_SOURCE_DIR}/resources/rgs/ntobjectfolder.rgs) set_module_type(ntobjshex win32dll UNICODE) target_link_libraries(ntobjshex uuid wine atlnew) add_importlibs(ntobjshex advapi32 winmm ole32 oleaut32 shlwapi shell32 comctl32 msvcrt gdi32 user32 kernel32 ntdll) add_cd_file(TARGET ntobjshex DESTINATION reactos/system32 FOR all)