Skip to content

Commit

Permalink
fix cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
OlivierLDff committed Mar 27, 2024
1 parent 5383243 commit a1c91c5
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions cmake/QaterialGenerateIcons.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,6 @@ function(qaterial_generate_icons_class OUTPUT_FILE_HPP OUTPUT_FILE_CPP)

else()

# Generate fake Qaterial.Impl.Icons.Icons.qml
message(STATUS "Generate Fake ${OUTPUT_FILE_HPP}")
file(WRITE ${OUTPUT_FILE_HPP}
"// Dummy file generated with CMake to mock the absence of Mdi icons.\n"
Expand All @@ -221,11 +220,16 @@ function(qaterial_generate_icons_class OUTPUT_FILE_HPP OUTPUT_FILE_CPP)
"#endif"
)

# Generate fake Qaterial.Impl.Icons.Icons.cpp
message(STATUS "Generate Fake ${OUTPUT_FILE_CPP}")
file(WRITE ${OUTPUT_FILE_CPP}
"// Dummy file generated with CMake to mock the absence of Mdi icons.\n"
"// Everything written here will be lost.\n\n"
"#include <Qaterial/Display/Icons.hpp>\n"
"#include \"moc_Icons.cpp\"\n"
"void __Qaterial_registerIconsSingleton()\n"
"{\n"
" qaterial::Icons::registerSingleton();\n"
"}\n"
)

endif()
Expand Down

0 comments on commit a1c91c5

Please sign in to comment.