Skip to content

Commit 1d08ffa

Browse files
authored
Merge pull request #1565 from heinezen/fix/missing-asset-folders
Add missing asset directories to CMakeLists
2 parents 01c1cf7 + f54d802 commit 1d08ffa

File tree

4 files changed

+13
-0
lines changed

4 files changed

+13
-0
lines changed

assets/test/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
# Copyright 2023-2023 the openage authors. See copying.md for legal info.
22

3+
add_subdirectory(nyan/)
4+
add_subdirectory(qml/)
35
add_subdirectory(shaders/)
46
add_subdirectory(textures/)

assets/test/nyan/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
install(DIRECTORY "."
2+
DESTINATION "${ASSET_DIR}/test/nyan"
3+
FILES_MATCHING PATTERN "*.nyan"
4+
)

assets/test/qml/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
install(DIRECTORY "."
2+
DESTINATION "${ASSET_DIR}/test/qml"
3+
FILES_MATCHING PATTERN "*.qml"
4+
)

libopenage/presenter/presenter.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,16 +158,19 @@ void Presenter::init_gui() {
158158
//// -- gui initialization
159159
// TODO: Do not use test GUI
160160
util::Path qml_root = this->root_dir / "assets" / "test" / "qml";
161+
log::log(INFO << "Presenter: Setting QML root to " << qml_root.resolve_native_path());
161162
if (not qml_root.is_dir()) {
162163
throw Error{ERR << "could not find qml root folder " << qml_root};
163164
}
164165

165166
util::Path qml_assets = this->root_dir / "assets";
167+
log::log(INFO << "Presenter: Setting QML asset path to " << qml_assets.resolve_native_path());
166168
if (not qml_assets.is_dir()) {
167169
throw Error{ERR << "could not find asset root folder " << qml_assets};
168170
}
169171

170172
util::Path qml_root_file = qml_root / "main.qml";
173+
log::log(INFO << "Presenter: Setting QML root file to " << qml_root_file.resolve_native_path());
171174
if (not qml_root_file.is_file()) {
172175
throw Error{ERR << "could not find main.qml file " << qml_root_file};
173176
}

0 commit comments

Comments
 (0)