[ACPPAGE] Make use of the PCH.
[reactos.git] / dll / shellext / acppage / CMakeLists.txt
1
2 project(appcompat)
3
4 set_cpp(WITH_RUNTIME)
5 if(NOT MSVC)
6 # HACK: this should be enabled globally!
7 add_compile_flags_language("-std=c++11" "CXX")
8 endif()
9
10 add_definitions(
11 -D_ATL_NO_EXCEPTIONS)
12
13 include_directories(
14 ${REACTOS_SOURCE_DIR}/sdk/lib/atl
15 ${REACTOS_SOURCE_DIR}/dll/appcompat/apphelp
16 ${REACTOS_SOURCE_DIR})
17 spec2def(acppage.dll acppage.spec ADD_IMPORTLIB)
18
19 list(APPEND SOURCE
20 ACPPage.cpp
21 CLayerUIPropPage.cpp
22 precomp.h)
23
24 add_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
33 set_module_type(acppage win32dll UNICODE)
34 target_link_libraries(acppage atlnew wine uuid)
35 add_delay_importlibs(acppage apphelp ole32 oleaut32 shlwapi comctl32 sfc_os)
36 add_importlibs(acppage shell32 user32 advapi32 msvcrt kernel32)
37 add_pch(acppage precomp.h SOURCE)
38 add_cd_file(TARGET acppage DESTINATION reactos/system32 FOR all)