Added visual studio cmake support
This commit is contained in:
parent
c428d66983
commit
ad84a6149f
@ -7,4 +7,4 @@ enable_testing()
|
|||||||
|
|
||||||
add_subdirectory(Demo)
|
add_subdirectory(Demo)
|
||||||
add_subdirectory(QRCodeLibrary)
|
add_subdirectory(QRCodeLibrary)
|
||||||
add_subdirectory(tests)
|
add_subdirectory(tests)
|
||||||
|
16
CMakeSettings.json
Normal file
16
CMakeSettings.json
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
{
|
||||||
|
"configurations": [
|
||||||
|
{
|
||||||
|
"name": "x64-Debug",
|
||||||
|
"generator": "Ninja",
|
||||||
|
"configurationType": "Debug",
|
||||||
|
"inheritEnvironments": [ "msvc_x64_x64" ],
|
||||||
|
"buildRoot": "${projectDir}\\out\\build\\${name}",
|
||||||
|
"installRoot": "${projectDir}\\out\\install\\${name}",
|
||||||
|
"cmakeCommandArgs": "",
|
||||||
|
"buildCommandArgs": "",
|
||||||
|
"ctestCommandArgs": "",
|
||||||
|
"cmakeToolchain": "C:/Users/dm1sh/Downloads/vcpkg/scripts/buildsystems/vcpkg.cmake"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
@ -14,7 +14,7 @@ TEST(QRCodeTests, ConstructsClass) {
|
|||||||
string inp("TEST");
|
string inp("TEST");
|
||||||
QRCode qr(inp);
|
QRCode qr(inp);
|
||||||
|
|
||||||
EXPECT_EQ(qr.input, "TES");
|
EXPECT_EQ(qr.input, "TEST");
|
||||||
EXPECT_EQ(qr.corr_lvl, CorrectionLevel::M);
|
EXPECT_EQ(qr.corr_lvl, CorrectionLevel::M);
|
||||||
EXPECT_EQ(qr.method, QRCodeMethod::Alphabetic);
|
EXPECT_EQ(qr.method, QRCodeMethod::Alphabetic);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user