From 3e7df6ec2c8f4d29937fd67c5b9e2f7642f53319 Mon Sep 17 00:00:00 2001 From: wqking Date: Wed, 26 Jan 2022 15:51:46 +0800 Subject: [PATCH] Added Visual Studio 2022 generator in CMake for tests --- tests/build/makefile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/build/makefile b/tests/build/makefile index 039f6f2..4c7f1f5 100644 --- a/tests/build/makefile +++ b/tests/build/makefile @@ -30,6 +30,7 @@ none: needcmake $(ECHO) " mingw_coverage Generate MinGW makefile and then use mingw32-make to build and generate code coverage report." $(ECHO) " msys Generate MSys makefile and then use make to build (release version)." $(ECHO) " nmake Generate Microsoft VC makefile and then use nmake to build." + $(ECHO) " vc22 Generate project files for Microsoft VC 2022. No auto build. You need to open the project in VC IDE then build." $(ECHO) " vc19 Generate project files for Microsoft VC 2019. No auto build. You need to open the project in VC IDE then build." $(ECHO) " vc17 Generate project files for Microsoft VC 2017. No auto build. You need to open the project in VC IDE then build." $(ECHO) " vc15 Generate project files for Microsoft VC 2015. No auto build. You need to open the project in VC IDE then build." @@ -93,6 +94,11 @@ linux_debug: needcmake $(CH_DIR) $(CACHE_DIR)_linux_debug $(CMAKE) -DCMAKE_BUILD_TYPE=Debug -G"Unix Makefiles" $(EXEC_BUILD)_linux_debug make $(TARGET) +vc22: needcmake + $(MK_DIR) $(PROJECT_PREFIX)_vc22 + $(CH_DIR) $(PROJECT_PREFIX)_vc22 $(CMAKE) -G "Visual Studio 17 2022" -A x64 + $(ECHO) Please open the solution $(PROJECT).sln in $(PROJECT_PREFIX)_vc22 in VC IDE. + vc19: needcmake $(MK_DIR) $(PROJECT_PREFIX)_vc19 $(CH_DIR) $(PROJECT_PREFIX)_vc19 $(CMAKE) -G "Visual Studio 16 2019" -A x64