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