[ACPPAGE] Implement custom compatibility mode selection + Expand paths CORE-10375
[reactos.git] / reactos / dll / shellext / acppage / CMakeLists.txt
1 project(appcompat)
2
3 set_cpp(WITH_RUNTIME)
4 if(NOT MSVC)
5 # HACK: this should be enabled globally!
6 add_compile_flags_language("-std=c++11" "CXX")
7 endif()
8
9 add_definitions(
10 -D_ATL_NO_EXCEPTIONS)
11
12 include_directories(
13 ${REACTOS_SOURCE_DIR}/sdk/lib/atl
14 ${REACTOS_SOURCE_DIR}/dll/appcompat/apphelp
15 ${REACTOS_SOURCE_DIR})
16 spec2def(acppage.dll acppage.spec ADD_IMPORTLIB)
17
18 list(APPEND SOURCE
19 ACPPage.cpp
20 CLayerUIPropPage.cpp
21 CLayerUIPropPage.hpp
22 CLayerStringList.hpp
23 acppage.spec
24 precomp.h
25 resource.h)
26
27 add_library(acppage SHARED
28 ${SOURCE}
29 ACPPage.rc
30 ${CMAKE_CURRENT_BINARY_DIR}/acppage.def)
31
32 set_module_type(acppage win32dll UNICODE)
33 target_link_libraries(acppage atlnew wine uuid)
34 add_delay_importlibs(acppage apphelp ole32 oleaut32 shlwapi comctl32 sfc_os)
35 add_importlibs(acppage shell32 user32 advapi32 msvcrt kernel32)
36 add_pch(acppage precomp.h SOURCE)
37 add_cd_file(TARGET acppage DESTINATION reactos/system32 FOR all)
38