2015-02-21 21:21:02 +00:00
|
|
|
|
|
|
|
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(
|
2016-04-20 12:36:25 +00:00
|
|
|
${REACTOS_SOURCE_DIR}/sdk/lib/atl
|
2015-02-21 21:21:02 +00:00
|
|
|
${REACTOS_SOURCE_DIR})
|
|
|
|
|
|
|
|
spec2def(ntobjshex.dll ntobjshex.spec)
|
|
|
|
|
2015-09-27 18:37:23 +00:00
|
|
|
file(GLOB_RECURSE ntobjshex_rc_deps resources/*.*)
|
|
|
|
add_rc_deps(ntobjshex.rc ${ntobjshex_rc_deps})
|
|
|
|
|
2017-11-26 12:26:39 +00:00
|
|
|
list(APPEND SOURCE
|
2015-08-21 15:01:04 +00:00
|
|
|
ntobjenum.cpp
|
|
|
|
ntobjfolder.cpp
|
2015-02-21 21:21:02 +00:00
|
|
|
ntobjshex.cpp
|
2015-02-23 17:13:32 +00:00
|
|
|
regfolder.cpp
|
2017-11-26 12:26:39 +00:00
|
|
|
precomp.h)
|
|
|
|
|
|
|
|
add_library(ntobjshex SHARED
|
|
|
|
${SOURCE}
|
|
|
|
ntobjshex.rc
|
2015-02-21 21:21:02 +00:00
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/ntobjshex.def)
|
|
|
|
|
|
|
|
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)
|
|
|
|
|
2017-11-26 12:26:39 +00:00
|
|
|
add_pch(ntobjshex precomp.h SOURCE)
|
2015-02-21 21:21:02 +00:00
|
|
|
add_cd_file(TARGET ntobjshex DESTINATION reactos/system32 FOR all)
|