Revert r66580 and r66579.
[reactos.git] / reactos / base / shell / shellext / ntobjshex / CMakeLists.txt
1
2 project(SHELL)
3
4 set_cpp(WITH_RUNTIME)
5
6 if(NOT MSVC)
7 # HACK: this should be enabled globally!
8 add_compile_flags_language("-std=c++11" "CXX")
9 endif()
10
11 include_directories(
12 ${REACTOS_SOURCE_DIR}/lib/atl
13 ${REACTOS_SOURCE_DIR})
14
15 spec2def(ntobjshex.dll ntobjshex.spec)
16
17 add_library(ntobjshex SHARED
18 ntobjns.cpp
19 ntobjshex.cpp
20 ntobjutil.cpp
21 ntobjshex.rc
22 regfolder.cpp
23 ${CMAKE_CURRENT_BINARY_DIR}/ntobjshex.def)
24
25 list(APPEND atl_rc_deps
26 ${CMAKE_CURRENT_SOURCE_DIR}/resources/rgs/ntobjectfolder.rgs)
27
28 set_module_type(ntobjshex win32dll UNICODE)
29 target_link_libraries(ntobjshex uuid wine atlnew)
30
31 add_importlibs(ntobjshex
32 advapi32
33 winmm
34 ole32
35 oleaut32
36 shlwapi
37 shell32
38 comctl32
39 msvcrt
40 gdi32
41 user32
42 kernel32
43 ntdll)
44
45 add_cd_file(TARGET ntobjshex DESTINATION reactos/system32 FOR all)