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