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