[NTOBJSHEX] Disable exceptions in atl when compiling without exceptions
[reactos.git] / dll / shellext / ntobjshex / CMakeLists.txt
1
2 project(SHELL)
3
4 add_definitions(
5 -D_ATL_NO_EXCEPTIONS)
6
7 set_cpp(WITH_RUNTIME)
8
9 if(NOT MSVC)
10 # HACK: this should be enabled globally!
11 add_compile_flags_language("-std=c++11" "CXX")
12 endif()
13
14 include_directories(
15 ${REACTOS_SOURCE_DIR}/sdk/lib/atl
16 ${REACTOS_SOURCE_DIR})
17
18 spec2def(ntobjshex.dll ntobjshex.spec)
19
20 file(GLOB_RECURSE ntobjshex_rc_deps resources/*.*)
21 add_rc_deps(ntobjshex.rc ${ntobjshex_rc_deps})
22
23 list(APPEND SOURCE
24 ntobjenum.cpp
25 ntobjfolder.cpp
26 ntobjshex.cpp
27 regfolder.cpp
28 precomp.h)
29
30 add_library(ntobjshex MODULE
31 ${SOURCE}
32 ntobjshex.rc
33 ${CMAKE_CURRENT_BINARY_DIR}/ntobjshex.def)
34
35 set_module_type(ntobjshex win32dll UNICODE)
36 target_link_libraries(ntobjshex uuid wine)
37
38 add_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
52 add_pch(ntobjshex precomp.h SOURCE)
53 add_cd_file(TARGET ntobjshex DESTINATION reactos/system32 FOR all)