1 parent 850d9fc commit f68fb78Copy full SHA for f68fb78
1 file changed
plugin/src/Caelestia/CMakeLists.txt
@@ -38,9 +38,24 @@ function(qml_module arg_TARGET)
38
install(FILES "${module_qmldir}" DESTINATION "${module_dir}")
39
install(FILES "${module_typeinfo}" DESTINATION "${module_dir}")
40
41
- target_link_libraries(${arg_TARGET} PRIVATE Qt::Core Qt::Qml ${arg_LIBRARIES})
+ target_link_libraries(${arg_TARGET} PRIVATE caelestia-pch Qt::Core Qt::Qml ${arg_LIBRARIES})
42
endfunction()
43
44
+add_library(caelestia-pch INTERFACE)
45
+target_precompile_headers(caelestia-pch INTERFACE
46
+ <qobject.h>
47
+ <qqmlintegration.h>
48
+ <qstring.h>
49
+ <qqmlengine.h>
50
+ <qloggingcategory.h>
51
+ <qvariant.h>
52
+ <qtimer.h>
53
+ <qdir.h>
54
+ <qlist.h>
55
+ <qstringlist.h>
56
+ <qpointer.h>
57
+)
58
+
59
qml_module(caelestia
60
URI Caelestia
61
SOURCES
0 commit comments