mirror of
https://github.com/reactos/reactos.git
synced 2025-08-07 05:43:08 +00:00
[CMAKE] Replace custom functions to built-in ones
add_target_compile_definitions -> target_compile_definitions add_target_compile_flags -> target_compile_options add_target_include_directories -> target_include_directories
This commit is contained in:
parent
480f729f6d
commit
7e069ccdb2
93 changed files with 163 additions and 180 deletions
|
@ -5,6 +5,6 @@ set_module_type(symdump win32cui)
|
|||
target_link_libraries(symdump wine)
|
||||
add_importlibs(symdump dbghelp shlwapi msvcrt kernel32 ntdll)
|
||||
if(NOT MSVC)
|
||||
add_target_compile_flags(symdump "-Wno-unused-but-set-variable")
|
||||
target_compile_options(symdump PRIVATE "-Wno-unused-but-set-variable")
|
||||
endif()
|
||||
add_cd_file(TARGET symdump DESTINATION reactos/system32 FOR all)
|
||||
|
|
|
@ -17,7 +17,7 @@ add_importlibs(frag user32 advapi32 shell32 comctl32 msvcrt kernel32 ntdll)
|
|||
add_cd_file(TARGET frag DESTINATION reactos/system32 FOR all)
|
||||
|
||||
add_executable(unfrag ${UNFRAG_SOURCE})
|
||||
add_target_compile_definitions(unfrag "_CUI_")
|
||||
target_compile_definitions(unfrag PRIVATE "_CUI_")
|
||||
set_module_type(unfrag win32cui UNICODE)
|
||||
add_importlibs(unfrag advapi32 msvcrt kernel32 ntdll)
|
||||
add_cd_file(TARGET unfrag DESTINATION reactos/system32 FOR all)
|
|
@ -70,10 +70,9 @@ list(APPEND SOURCE
|
|||
|
||||
add_executable(ncftp ${SOURCE} ncftp.rc)
|
||||
set_module_type(ncftp win32cui)
|
||||
target_compile_definitions(ncftp PRIVATE HAVE_UTIME_H HAVE_UNISTD_H)
|
||||
if(NOT MSVC)
|
||||
add_target_compile_flags(ncftp "-DHAVE_UTIME_H -DHAVE_UNISTD_H -Wno-unused-but-set-variable")
|
||||
else()
|
||||
add_target_compile_flags(ncftp "-DHAVE_UTIME_H -DHAVE_UNISTD_H")
|
||||
target_compile_options(ncftp PRIVATE -Wno-unused-but-set-variable)
|
||||
endif()
|
||||
add_importlibs(ncftp advapi32 user32 ws2_32 msvcrt kernel32)
|
||||
add_cd_file(TARGET ncftp DESTINATION reactos/system32 FOR all)
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
add_executable(logevent logevent.c logevent.rc)
|
||||
set_module_type(logevent win32cui)
|
||||
if(NOT MSVC)
|
||||
add_target_compile_flags(logevent "-Wno-unused-but-set-variable")
|
||||
target_compile_options(logevent PRIVATE "-Wno-unused-but-set-variable")
|
||||
endif()
|
||||
add_importlibs(logevent advapi32 msvcrt kernel32)
|
||||
add_cd_file(TARGET logevent DESTINATION reactos/system32 FOR all)
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
add_executable(pedump pedump.c pedump.rc)
|
||||
set_module_type(pedump win32cui)
|
||||
if(NOT MSVC)
|
||||
add_target_compile_flags(pedump "-Wno-unused-but-set-variable")
|
||||
target_compile_options(pedump PRIVATE "-Wno-unused-but-set-variable")
|
||||
endif()
|
||||
add_importlibs(pedump msvcrt kernel32 ntdll)
|
||||
add_cd_file(TARGET pedump DESTINATION reactos/system32 FOR all)
|
||||
|
|
|
@ -12,7 +12,7 @@ list(APPEND SOURCE
|
|||
add_executable(rosperf ${SOURCE} rosperf.rc)
|
||||
set_module_type(rosperf win32cui UNICODE)
|
||||
if(NOT MSVC)
|
||||
add_target_compile_flags(rosperf "-Wno-unused-but-set-variable")
|
||||
target_compile_options(rosperf PRIVATE "-Wno-unused-but-set-variable")
|
||||
endif()
|
||||
add_importlibs(rosperf version msimg32 gdi32 shell32 advapi32 user32 ntdll msvcrt kernel32)
|
||||
add_cd_file(TARGET rosperf DESTINATION reactos/system32 FOR all)
|
||||
|
|
|
@ -9,5 +9,5 @@ add_cd_file(TARGET winefile DESTINATION reactos/system32 FOR all)
|
|||
|
||||
#if(NOT MSVC)
|
||||
# FIXME: http://www.cmake.org/Bug/view.php?id=12998
|
||||
# add_target_compile_flags(winefile "-Wno-format")
|
||||
# target_compile_options(winefile PRIVATE "-Wno-format")
|
||||
#endif()
|
||||
|
|
|
@ -10,7 +10,7 @@ list(APPEND SOURCE
|
|||
add_executable(template_dialog ${SOURCE} dialog.rc)
|
||||
set_module_type(template_dialog win32cui)
|
||||
if(NOT MSVC)
|
||||
add_target_compile_flags(template_dialog "-Wno-unused-but-set-variable")
|
||||
target_compile_options(template_dialog PRIVATE "-Wno-unused-but-set-variable")
|
||||
endif()
|
||||
add_importlibs(template_dialog user32 gdi32 comctl32 msvcrt kernel32 ntdll)
|
||||
add_cd_file(TARGET template_dialog DESTINATION reactos/system32 FOR all)
|
||||
|
|
|
@ -553,7 +553,7 @@ endif()
|
|||
|
||||
|
||||
add_executable(crtdll_crt_apitest testlist.c ${SOURCE_CRTDLL})
|
||||
add_target_compile_definitions(crtdll_crt_apitest TEST_CRTDLL)
|
||||
target_compile_definitions(crtdll_crt_apitest PRIVATE TEST_CRTDLL)
|
||||
target_link_libraries(crtdll_crt_apitest wine ${PSEH_LIB})
|
||||
set_module_type(crtdll_crt_apitest win32cui)
|
||||
add_importlibs(crtdll_crt_apitest crtdll msvcrt kernel32 ntdll)
|
||||
|
|
|
@ -1375,7 +1375,7 @@ endif()
|
|||
|
||||
# Startup code doesn't go together well with the static CRT... too much __imp_
|
||||
#add_executable(static_crt_apitest testlist.c ${SOURCE_MSVCRT})
|
||||
#add_target_compile_definitions(static_crt_apitest TEST_STATIC_CRT)
|
||||
#target_compile_definitions(static_crt_apitest PRIVATE TEST_STATIC_CRT)
|
||||
#target_link_libraries(static_crt_apitest ${PSEH_LIB} crt wine)
|
||||
#set_module_type(static_crt_apitest win32cui)
|
||||
#add_importlibs(static_crt_apitest kernel32 ntdll)
|
||||
|
@ -1391,7 +1391,7 @@ endif()
|
|||
#add_rostests_file(TARGET static_crt_dll_startup)
|
||||
|
||||
add_executable(msvcrt_crt_apitest testlist.c ${SOURCE_MSVCRT})
|
||||
add_target_compile_definitions(msvcrt_crt_apitest TEST_MSVCRT)
|
||||
target_compile_definitions(msvcrt_crt_apitest PRIVATE TEST_MSVCRT)
|
||||
target_link_libraries(msvcrt_crt_apitest wine ${PSEH_LIB})
|
||||
set_module_type(msvcrt_crt_apitest win32cui)
|
||||
add_importlibs(msvcrt_crt_apitest msvcrt kernel32 ntdll)
|
||||
|
|
|
@ -152,7 +152,7 @@ elseif(ARCH STREQUAL "amd64")
|
|||
endif()
|
||||
|
||||
add_executable(ntdll_crt_apitest testlist.c ${SOURCE_NTDLL})
|
||||
add_target_compile_definitions(ntdll_crt_apitest TEST_NTDLL)
|
||||
target_compile_definitions(ntdll_crt_apitest PRIVATE TEST_NTDLL)
|
||||
target_link_libraries(ntdll_crt_apitest wine ${PSEH_LIB})
|
||||
set_module_type(ntdll_crt_apitest win32cui)
|
||||
add_importlibs(ntdll_crt_apitest ntdll msvcrt kernel32)
|
||||
|
|
|
@ -106,7 +106,7 @@ set_module_type(kmtest_drv kernelmodedriver)
|
|||
target_link_libraries(kmtest_drv kmtest_printf chkstk memcmp ntoskrnl_vista ${PSEH_LIB})
|
||||
add_importlibs(kmtest_drv ntoskrnl hal)
|
||||
add_dependencies(kmtest_drv bugcodes xdk)
|
||||
add_target_compile_definitions(kmtest_drv KMT_KERNEL_MODE NTDDI_VERSION=NTDDI_WS03SP1)
|
||||
target_compile_definitions(kmtest_drv PRIVATE KMT_KERNEL_MODE NTDDI_VERSION=NTDDI_WS03SP1)
|
||||
#add_pch(kmtest_drv include/kmt_test.h)
|
||||
add_rostests_file(TARGET kmtest_drv)
|
||||
|
||||
|
@ -115,8 +115,8 @@ add_library(kmtest_printf
|
|||
${REACTOS_SOURCE_DIR}/sdk/lib/crt/string/strnlen.c
|
||||
${REACTOS_SOURCE_DIR}/sdk/lib/crt/string/wcsnlen.c
|
||||
${REACTOS_SOURCE_DIR}/sdk/lib/crt/printf/streamout.c)
|
||||
add_target_compile_definitions(kmtest_printf _LIBCNT_ _USER32_WSPRINTF wctomb=KmtWcToMb)
|
||||
add_target_include_directories(kmtest_printf ${REACTOS_SOURCE_DIR}/sdk/lib/crt/include)
|
||||
target_compile_definitions(kmtest_printf PRIVATE _LIBCNT_ _USER32_WSPRINTF wctomb=KmtWcToMb)
|
||||
target_include_directories(kmtest_printf PRIVATE ${REACTOS_SOURCE_DIR}/sdk/lib/crt/include)
|
||||
|
||||
#
|
||||
# kmtest.exe loader application
|
||||
|
@ -159,7 +159,7 @@ add_executable(kmtest ${KMTEST_SOURCE})
|
|||
set_module_type(kmtest win32cui)
|
||||
target_link_libraries(kmtest ${PSEH_LIB})
|
||||
add_importlibs(kmtest fltlib advapi32 ws2_32 msvcrt kernel32 ntdll)
|
||||
add_target_compile_definitions(kmtest KMT_USER_MODE NTDDI_VERSION=NTDDI_WS03SP1)
|
||||
target_compile_definitions(kmtest PRIVATE KMT_USER_MODE NTDDI_VERSION=NTDDI_WS03SP1)
|
||||
#add_pch(kmtest include/kmt_test.h)
|
||||
set_target_properties(kmtest PROPERTIES OUTPUT_NAME "kmtest_")
|
||||
add_rostests_file(TARGET kmtest)
|
||||
|
|
|
@ -9,6 +9,6 @@ add_library(example_drv MODULE ${EXAMPLE_DRV_SOURCE})
|
|||
set_module_type(example_drv kernelmodedriver)
|
||||
target_link_libraries(example_drv kmtest_printf ${PSEH_LIB})
|
||||
add_importlibs(example_drv ntoskrnl hal)
|
||||
add_target_compile_definitions(example_drv KMT_STANDALONE_DRIVER)
|
||||
target_compile_definitions(example_drv PRIVATE KMT_STANDALONE_DRIVER)
|
||||
#add_pch(example_drv ../include/kmt_test.h)
|
||||
add_rostests_file(TARGET example_drv)
|
||||
|
|
|
@ -9,6 +9,6 @@ add_library(fltmgr_create MODULE ${FLTMGR_TEST_DRV_SOURCE})
|
|||
set_module_type(fltmgr_create kernelmodedriver)
|
||||
target_link_libraries(fltmgr_create kmtest_printf ${PSEH_LIB})
|
||||
add_importlibs(fltmgr_create fltmgr ntoskrnl hal)
|
||||
add_target_compile_definitions(fltmgr_create KMT_STANDALONE_DRIVER KMT_FILTER_DRIVER NTDDI_VERSION=NTDDI_WS03SP1)
|
||||
target_compile_definitions(fltmgr_create PRIVATE KMT_STANDALONE_DRIVER KMT_FILTER_DRIVER NTDDI_VERSION=NTDDI_WS03SP1)
|
||||
#add_pch(example_drv ../include/kmt_test.h)
|
||||
add_rostests_file(TARGET fltmgr_create)
|
||||
|
|
|
@ -9,6 +9,6 @@ add_library(FltMgrLoad_drv MODULE ${FLTMGR_TEST_DRV_SOURCE})
|
|||
set_module_type(FltMgrLoad_drv kernelmodedriver)
|
||||
target_link_libraries(FltMgrLoad_drv kmtest_printf ${PSEH_LIB})
|
||||
add_importlibs(FltMgrLoad_drv fltmgr ntoskrnl hal)
|
||||
add_target_compile_definitions(FltMgrLoad_drv KMT_STANDALONE_DRIVER KMT_FILTER_DRIVER NTDDI_VERSION=NTDDI_WS03SP1)
|
||||
target_compile_definitions(FltMgrLoad_drv PRIVATE KMT_STANDALONE_DRIVER KMT_FILTER_DRIVER NTDDI_VERSION=NTDDI_WS03SP1)
|
||||
#add_pch(example_drv ../include/kmt_test.h)
|
||||
add_rostests_file(TARGET FltMgrLoad_drv)
|
||||
|
|
|
@ -10,6 +10,6 @@ add_library(fltmgrreg_drv MODULE ${FLTMGR_TEST_DRV_SOURCE})
|
|||
set_module_type(fltmgrreg_drv kernelmodedriver)
|
||||
target_link_libraries(fltmgrreg_drv kmtest_printf ${PSEH_LIB})
|
||||
add_importlibs(fltmgrreg_drv fltmgr ntoskrnl hal)
|
||||
add_target_compile_definitions(fltmgrreg_drv KMT_STANDALONE_DRIVER KMT_FILTER_DRIVER NTDDI_VERSION=NTDDI_WS03SP1)
|
||||
target_compile_definitions(fltmgrreg_drv PRIVATE KMT_STANDALONE_DRIVER KMT_FILTER_DRIVER NTDDI_VERSION=NTDDI_WS03SP1)
|
||||
#add_pch(example_drv ../include/kmt_test.h)
|
||||
add_rostests_file(TARGET fltmgrreg_drv)
|
||||
|
|
|
@ -13,6 +13,6 @@ add_library(hidp_drv MODULE ${HIDP_DRV_SOURCE})
|
|||
set_module_type(hidp_drv kernelmodedriver)
|
||||
target_link_libraries(hidp_drv kmtest_printf ${PSEH_LIB})
|
||||
add_importlibs(hidp_drv hidparse ntoskrnl hal)
|
||||
add_target_compile_definitions(hidp_drv KMT_STANDALONE_DRIVER)
|
||||
target_compile_definitions(hidp_drv PRIVATE KMT_STANDALONE_DRIVER)
|
||||
#add_pch(hidp_drv ../include/kmt_test.h)
|
||||
add_rostests_file(TARGET hidp_drv)
|
||||
|
|
|
@ -9,6 +9,6 @@ add_library(kernel32_drv MODULE ${KERNEL32_DRV_SOURCE})
|
|||
set_module_type(kernel32_drv kernelmodedriver)
|
||||
target_link_libraries(kernel32_drv kmtest_printf ${PSEH_LIB})
|
||||
add_importlibs(kernel32_drv ntoskrnl hal)
|
||||
add_target_compile_definitions(kernel32_drv KMT_STANDALONE_DRIVER)
|
||||
target_compile_definitions(kernel32_drv PRIVATE KMT_STANDALONE_DRIVER)
|
||||
#add_pch(kernel32_drv ../include/kmt_test.h)
|
||||
add_rostests_file(TARGET kernel32_drv)
|
||||
|
|
|
@ -12,7 +12,7 @@ add_library(cccopyread_drv MODULE ${CCCOPYREAD_DRV_SOURCE})
|
|||
set_module_type(cccopyread_drv kernelmodedriver)
|
||||
target_link_libraries(cccopyread_drv kmtest_printf ${PSEH_LIB})
|
||||
add_importlibs(cccopyread_drv ntoskrnl hal)
|
||||
add_target_compile_definitions(cccopyread_drv KMT_STANDALONE_DRIVER)
|
||||
target_compile_definitions(cccopyread_drv PRIVATE KMT_STANDALONE_DRIVER)
|
||||
#add_pch(cccopyread_drv ../include/kmt_test.h)
|
||||
add_rostests_file(TARGET cccopyread_drv)
|
||||
|
||||
|
@ -27,7 +27,7 @@ add_library(cccopywrite_drv MODULE ${CCCOPYWRITE_DRV_SOURCE})
|
|||
set_module_type(cccopywrite_drv kernelmodedriver)
|
||||
target_link_libraries(cccopywrite_drv kmtest_printf ${PSEH_LIB})
|
||||
add_importlibs(cccopywrite_drv ntoskrnl hal)
|
||||
add_target_compile_definitions(cccopywrite_drv KMT_STANDALONE_DRIVER)
|
||||
target_compile_definitions(cccopywrite_drv PRIVATE KMT_STANDALONE_DRIVER)
|
||||
#add_pch(cccopyread_drv ../include/kmt_test.h)
|
||||
add_rostests_file(TARGET cccopywrite_drv)
|
||||
|
||||
|
@ -42,7 +42,7 @@ add_library(ccmapdata_drv MODULE ${CCMAPDATA_DRV_SOURCE})
|
|||
set_module_type(ccmapdata_drv kernelmodedriver)
|
||||
target_link_libraries(ccmapdata_drv kmtest_printf ${PSEH_LIB})
|
||||
add_importlibs(ccmapdata_drv ntoskrnl hal)
|
||||
add_target_compile_definitions(ccmapdata_drv KMT_STANDALONE_DRIVER)
|
||||
target_compile_definitions(ccmapdata_drv PRIVATE KMT_STANDALONE_DRIVER)
|
||||
#add_pch(ccmapdata_drv ../include/kmt_test.h)
|
||||
add_rostests_file(TARGET ccmapdata_drv)
|
||||
|
||||
|
@ -57,7 +57,7 @@ add_library(ccpinmappeddata_drv MODULE ${CCPINMAPPEDDATA_DRV_SOURCE})
|
|||
set_module_type(ccpinmappeddata_drv kernelmodedriver)
|
||||
target_link_libraries(ccpinmappeddata_drv kmtest_printf ${PSEH_LIB})
|
||||
add_importlibs(ccpinmappeddata_drv ntoskrnl hal)
|
||||
add_target_compile_definitions(ccpinmappeddata_drv KMT_STANDALONE_DRIVER)
|
||||
target_compile_definitions(ccpinmappeddata_drv PRIVATE KMT_STANDALONE_DRIVER)
|
||||
#add_pch(ccpinmappeddata_drv ../include/kmt_test.h)
|
||||
add_rostests_file(TARGET ccpinmappeddata_drv)
|
||||
|
||||
|
@ -72,7 +72,7 @@ add_library(ccpinread_drv MODULE ${CCPINREAD_DRV_SOURCE})
|
|||
set_module_type(ccpinread_drv kernelmodedriver)
|
||||
target_link_libraries(ccpinread_drv kmtest_printf ${PSEH_LIB})
|
||||
add_importlibs(ccpinread_drv ntoskrnl hal)
|
||||
add_target_compile_definitions(ccpinread_drv KMT_STANDALONE_DRIVER)
|
||||
target_compile_definitions(ccpinread_drv PRIVATE KMT_STANDALONE_DRIVER)
|
||||
#add_pch(ccmapdata_drv ../include/kmt_test.h)
|
||||
add_rostests_file(TARGET ccpinread_drv)
|
||||
|
||||
|
@ -87,6 +87,6 @@ add_library(ccsetfilesizes_drv MODULE ${CCSETFILESIZES_DRV_SOURCE})
|
|||
set_module_type(ccsetfilesizes_drv kernelmodedriver)
|
||||
target_link_libraries(ccsetfilesizes_drv kmtest_printf ${PSEH_LIB})
|
||||
add_importlibs(ccsetfilesizes_drv ntoskrnl hal)
|
||||
add_target_compile_definitions(ccsetfilesizes_drv KMT_STANDALONE_DRIVER)
|
||||
target_compile_definitions(ccsetfilesizes_drv PRIVATE KMT_STANDALONE_DRIVER)
|
||||
#add_pch(ccsetfilesizes_drv ../include/kmt_test.h)
|
||||
add_rostests_file(TARGET ccsetfilesizes_drv)
|
||||
|
|
|
@ -12,7 +12,7 @@ add_library(iocreatefile_drv MODULE ${IOCREATEFILE_DRV_SOURCE})
|
|||
set_module_type(iocreatefile_drv kernelmodedriver)
|
||||
target_link_libraries(iocreatefile_drv kmtest_printf ${PSEH_LIB})
|
||||
add_importlibs(iocreatefile_drv ntoskrnl hal)
|
||||
add_target_compile_definitions(iocreatefile_drv KMT_STANDALONE_DRIVER)
|
||||
target_compile_definitions(iocreatefile_drv PRIVATE KMT_STANDALONE_DRIVER)
|
||||
#add_pch(iocreatefile_drv ../include/kmt_test.h)
|
||||
add_rostests_file(TARGET iocreatefile_drv)
|
||||
|
||||
|
@ -27,7 +27,7 @@ add_library(iodeviceobject_drv MODULE ${IODEVICEOBJECT_DRV_SOURCE})
|
|||
set_module_type(iodeviceobject_drv kernelmodedriver)
|
||||
target_link_libraries(iodeviceobject_drv kmtest_printf ${PSEH_LIB})
|
||||
add_importlibs(iodeviceobject_drv ntoskrnl hal)
|
||||
add_target_compile_definitions(iodeviceobject_drv KMT_STANDALONE_DRIVER)
|
||||
target_compile_definitions(iodeviceobject_drv PRIVATE KMT_STANDALONE_DRIVER)
|
||||
#add_pch(iodeviceobject_drv ../include/kmt_test.h)
|
||||
add_rostests_file(TARGET iodeviceobject_drv)
|
||||
|
||||
|
@ -42,7 +42,7 @@ add_library(iohelper_drv MODULE ${IOHELPER_DRV_SOURCE})
|
|||
set_module_type(iohelper_drv kernelmodedriver)
|
||||
target_link_libraries(iohelper_drv kmtest_printf ${PSEH_LIB})
|
||||
add_importlibs(iohelper_drv ntoskrnl hal)
|
||||
add_target_compile_definitions(iohelper_drv KMT_STANDALONE_DRIVER)
|
||||
target_compile_definitions(iohelper_drv PRIVATE KMT_STANDALONE_DRIVER)
|
||||
#add_pch(iohelper_drv ../include/kmt_test.h)
|
||||
add_rostests_file(TARGET iohelper_drv)
|
||||
|
||||
|
@ -57,6 +57,6 @@ add_library(ioreadwrite_drv MODULE ${IOREADWRITE_DRV_SOURCE})
|
|||
set_module_type(ioreadwrite_drv kernelmodedriver)
|
||||
target_link_libraries(ioreadwrite_drv kmtest_printf ${PSEH_LIB})
|
||||
add_importlibs(ioreadwrite_drv ntoskrnl hal)
|
||||
add_target_compile_definitions(ioreadwrite_drv KMT_STANDALONE_DRIVER)
|
||||
target_compile_definitions(ioreadwrite_drv PRIVATE KMT_STANDALONE_DRIVER)
|
||||
#add_pch(ioreadwrite_drv ../include/kmt_test.h)
|
||||
add_rostests_file(TARGET ioreadwrite_drv)
|
||||
|
|
|
@ -12,7 +12,7 @@ add_library(ntcreatesection_drv MODULE ${NTCREATESECTION_DRV_SOURCE})
|
|||
set_module_type(ntcreatesection_drv kernelmodedriver)
|
||||
target_link_libraries(ntcreatesection_drv kmtest_printf ${PSEH_LIB})
|
||||
add_importlibs(ntcreatesection_drv ntoskrnl hal)
|
||||
add_target_compile_definitions(ntcreatesection_drv KMT_STANDALONE_DRIVER)
|
||||
target_compile_definitions(ntcreatesection_drv PRIVATE KMT_STANDALONE_DRIVER)
|
||||
#add_pch(ntcreatesection_drv ../include/kmt_test.h)
|
||||
add_rostests_file(TARGET ntcreatesection_drv)
|
||||
|
||||
|
@ -27,6 +27,6 @@ add_library(mmmaplockedpagesspecifycache_drv MODULE ${MMMAPLOCKEDPAGESSPECIFYCAC
|
|||
set_module_type(mmmaplockedpagesspecifycache_drv kernelmodedriver)
|
||||
target_link_libraries(mmmaplockedpagesspecifycache_drv kmtest_printf ${PSEH_LIB})
|
||||
add_importlibs(mmmaplockedpagesspecifycache_drv ntoskrnl hal)
|
||||
add_target_compile_definitions(mmmaplockedpagesspecifycache_drv KMT_STANDALONE_DRIVER)
|
||||
target_compile_definitions(mmmaplockedpagesspecifycache_drv PRIVATE KMT_STANDALONE_DRIVER)
|
||||
#add_pch(mmmaplockedpagesspecifycache_drv ../include/kmt_test.h)
|
||||
add_rostests_file(TARGET mmmaplockedpagesspecifycache_drv)
|
||||
|
|
|
@ -12,6 +12,6 @@ add_library(poirp_drv MODULE ${POIRP_DRV_SOURCE})
|
|||
set_module_type(poirp_drv kernelmodedriver)
|
||||
target_link_libraries(poirp_drv kmtest_printf ${PSEH_LIB})
|
||||
add_importlibs(poirp_drv ntoskrnl hal)
|
||||
add_target_compile_definitions(poirp_drv KMT_STANDALONE_DRIVER)
|
||||
target_compile_definitions(poirp_drv PRIVATE KMT_STANDALONE_DRIVER)
|
||||
#add_pch(poirp_drv ../include/kmt_test.h)
|
||||
add_rostests_file(TARGET poirp_drv)
|
||||
|
|
|
@ -11,6 +11,6 @@ add_library(tcpip_drv MODULE ${TCPIP_TEST_DRV_SOURCE})
|
|||
set_module_type(tcpip_drv kernelmodedriver)
|
||||
target_link_libraries(tcpip_drv kmtest_printf ${PSEH_LIB})
|
||||
add_importlibs(tcpip_drv ntoskrnl hal)
|
||||
add_target_compile_definitions(tcpip_drv KMT_STANDALONE_DRIVER)
|
||||
target_compile_definitions(tcpip_drv PRIVATE KMT_STANDALONE_DRIVER)
|
||||
#add_pch(example_drv ../include/kmt_test.h)
|
||||
add_rostests_file(TARGET tcpip_drv)
|
||||
|
|
|
@ -6,7 +6,7 @@ add_importlibs(pseh2_test msvcrt kernel32 ntdll)
|
|||
add_rostests_file(TARGET pseh2_test)
|
||||
|
||||
if(NOT MSVC)
|
||||
add_target_compile_flags(pseh2_test "-Wno-format")
|
||||
target_compile_options(pseh2_test PRIVATE "-Wno-format")
|
||||
endif()
|
||||
|
||||
|
||||
|
@ -17,5 +17,5 @@ add_importlibs(pseh2_test_cpp msvcrt kernel32 ntdll)
|
|||
add_rostests_file(TARGET pseh2_test_cpp)
|
||||
|
||||
if(NOT MSVC)
|
||||
add_target_compile_flags(pseh2_test_cpp "-Wno-format")
|
||||
target_compile_options(pseh2_test_cpp PRIVATE "-Wno-format")
|
||||
endif()
|
||||
|
|
|
@ -18,7 +18,7 @@ list(APPEND SOURCE
|
|||
add_executable(advapi32_winetest ${SOURCE} testlist.c)
|
||||
|
||||
if(USE_CLANG_CL OR (NOT MSVC))
|
||||
add_target_compile_flags(advapi32_winetest "-Wno-format")
|
||||
target_compile_options(advapi32_winetest PRIVATE "-Wno-format")
|
||||
endif()
|
||||
|
||||
set_module_type(advapi32_winetest win32cui)
|
||||
|
|
|
@ -41,7 +41,7 @@ add_executable(comctl32_winetest
|
|||
rsrc.rc)
|
||||
|
||||
if(USE_CLANG_CL OR (NOT MSVC))
|
||||
add_target_compile_flags(comctl32_winetest "-Wno-format")
|
||||
target_compile_options(comctl32_winetest PRIVATE "-Wno-format")
|
||||
endif()
|
||||
|
||||
set_module_type(comctl32_winetest win32cui)
|
||||
|
|
|
@ -49,7 +49,7 @@ add_executable(kernel32_winetest
|
|||
resource.rc)
|
||||
|
||||
if(USE_CLANG_CL OR (NOT MSVC))
|
||||
add_target_compile_flags(kernel32_winetest "-Wno-format")
|
||||
target_compile_options(kernel32_winetest PRIVATE "-Wno-format")
|
||||
endif()
|
||||
|
||||
set_module_type(kernel32_winetest win32cui)
|
||||
|
|
|
@ -28,7 +28,7 @@ list(APPEND SOURCE
|
|||
add_executable(msvcrt_winetest ${SOURCE} testlist.c)
|
||||
|
||||
if(USE_CLANG_CL OR (NOT MSVC))
|
||||
add_target_compile_flags(msvcrt_winetest "-Wno-format")
|
||||
target_compile_options(msvcrt_winetest PRIVATE "-Wno-format")
|
||||
endif()
|
||||
|
||||
set_module_type(msvcrt_winetest win32cui)
|
||||
|
|
|
@ -33,7 +33,7 @@ endif()
|
|||
add_executable(ntdll_winetest ${SOURCE} testlist.c)
|
||||
|
||||
if(USE_CLANG_CL OR (NOT MSVC))
|
||||
add_target_compile_flags(ntdll_winetest "-Wno-format")
|
||||
target_compile_options(ntdll_winetest PRIVATE "-Wno-format")
|
||||
endif()
|
||||
|
||||
set_module_type(ntdll_winetest win32cui)
|
||||
|
|
|
@ -41,9 +41,9 @@ endif()
|
|||
add_executable(rpcrt4_winetest ${SOURCE})
|
||||
|
||||
if(USE_CLANG_CL OR (NOT MSVC))
|
||||
add_target_compile_flags(rpcrt4_winetest "-Wno-format")
|
||||
target_compile_options(rpcrt4_winetest PRIVATE "-Wno-format")
|
||||
if(USE_CLANG_CL)
|
||||
add_target_compile_flags(rpcrt4_winetest "-Wno-cast-calling-convention")
|
||||
target_compile_options(rpcrt4_winetest PRIVATE "-Wno-cast-calling-convention")
|
||||
endif()
|
||||
endif()
|
||||
|
||||
|
|
|
@ -15,7 +15,7 @@ list(APPEND SOURCE
|
|||
add_executable(winmm_winetest ${SOURCE})
|
||||
|
||||
if(USE_CLANG_CL OR (NOT MSVC))
|
||||
add_target_compile_flags(winmm_winetest "-Wno-format")
|
||||
target_compile_options(winmm_winetest PRIVATE "-Wno-format")
|
||||
endif()
|
||||
|
||||
target_link_libraries(winmm_winetest dxguid)
|
||||
|
|
|
@ -4,7 +4,7 @@ include_directories(BEFORE ${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine)
|
|||
add_executable(ws2_32_winetest protocol.c sock.c testlist.c)
|
||||
|
||||
if(USE_CLANG_CL OR (NOT MSVC))
|
||||
add_target_compile_flags(ws2_32_winetest "-Wno-format")
|
||||
target_compile_options(ws2_32_winetest PRIVATE "-Wno-format")
|
||||
endif()
|
||||
|
||||
set_module_type(ws2_32_winetest win32cui)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue