1 2project(SHELL) 3 4add_definitions( 5 -D_ATL_NO_EXCEPTIONS) 6 7set_cpp(WITH_RUNTIME) 8 9if(NOT MSVC) 10 # HACK: this should be enabled globally! 11 add_compile_flags_language("-std=c++11" "CXX") 12endif() 13 14include_directories( 15 ${REACTOS_SOURCE_DIR}/sdk/lib/atl 16 ${REACTOS_SOURCE_DIR}) 17 18spec2def(ntobjshex.dll ntobjshex.spec) 19 20file(GLOB_RECURSE ntobjshex_rc_deps resources/*.*) 21add_rc_deps(ntobjshex.rc ${ntobjshex_rc_deps}) 22 23list(APPEND SOURCE 24 ntobjenum.cpp 25 ntobjfolder.cpp 26 ntobjshex.cpp 27 regfolder.cpp 28 precomp.h) 29 30add_library(ntobjshex MODULE 31 ${SOURCE} 32 ntobjshex.rc 33 ${CMAKE_CURRENT_BINARY_DIR}/ntobjshex.def) 34 35set_module_type(ntobjshex win32dll UNICODE) 36target_link_libraries(ntobjshex uuid wine) 37 38add_importlibs(ntobjshex 39 advapi32 40 winmm 41 ole32 42 oleaut32 43 shlwapi 44 shell32 45 comctl32 46 msvcrt 47 gdi32 48 user32 49 kernel32 50 ntdll) 51 52add_pch(ntobjshex precomp.h SOURCE) 53add_cd_file(TARGET ntobjshex DESTINATION reactos/system32 FOR all) 54