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 CEditCompatModes.cpp 22 CLayerUIPropPage.cpp 23 precomp.h) 24 25add_library(acppage MODULE 26 ${SOURCE} 27 acppage.spec 28 ACPPage.rc 29 CLayerUIPropPage.hpp 30 CLayerStringList.hpp 31 resource.h 32 ${CMAKE_CURRENT_BINARY_DIR}/acppage.def) 33 34set_module_type(acppage win32dll UNICODE) 35target_link_libraries(acppage wine uuid) 36add_delay_importlibs(acppage apphelp ole32 oleaut32 shlwapi comctl32 sfc_os) 37add_importlibs(acppage shell32 user32 advapi32 msvcrt kernel32) 38add_pch(acppage precomp.h SOURCE) 39add_cd_file(TARGET acppage DESTINATION reactos/system32 FOR all) 40