Ich habe sie auf die Standardmethode integriert, indem ich CMakeLists.txt bearbeitet und den Quellcodeordner hinzugefügt habe.
Code: Select all
set(BUILD_TESTING OFF)
add_subdirectory(externals/faker-cxx)
target_link_libraries(MyApp faker-cxx)
Code: Select all
const auto id = faker::string::uuidV4();
const auto email = faker::internet::email();
const auto password = faker::internet::password();
const auto city = faker::location::city();
const auto streetAddress = faker::location::streetAddress();
const auto bornDate = faker::date::birthdateByYear(1970, 2000);
Eine einfache Konsolenanwendung ohne Qt-Abhängigkeiten funktioniert einwandfrei.
Compiler: MinGW 13
Ich bin neu in C++ und Qt. Was könnte das Problem sein?
Mobile version