mirror of
https://github.com/clangen/musikcube.git
synced 2024-11-19 11:10:52 +00:00
- Fixed macOS / Linux compile
- Updated CMakeLists.txt to copy themes to bin directory, and also the install dir.
This commit is contained in:
parent
a90bd2eec7
commit
3d7f36a975
@ -141,6 +141,16 @@ else (CMAKE_SYSTEM_NAME MATCHES "Linux")
|
||||
endif (CMAKE_SYSTEM_NAME MATCHES "Linux")
|
||||
|
||||
file(GLOB sdk_headers "src/core/sdk/*.h")
|
||||
file(GLOB themes "src/musikbox/data/themes/*.json")
|
||||
|
||||
file(COPY ${themes}
|
||||
DESTINATION bin/themes
|
||||
)
|
||||
|
||||
install(
|
||||
FILES ${themes}
|
||||
DESTINATION share/musikcube/themes
|
||||
)
|
||||
|
||||
install(
|
||||
FILES ${sdk_headers}
|
||||
|
@ -228,7 +228,7 @@ struct Theme {
|
||||
std::wstring u16fn = u8to16(fn);
|
||||
FILE* file = _wfopen(u16fn.c_str(), L"rb");
|
||||
#else
|
||||
FILE* file = fopen(fn, "rb");
|
||||
FILE* file = fopen(fn.c_str(), "rb");
|
||||
#endif
|
||||
if (!file) {
|
||||
return false;
|
||||
|
Loading…
Reference in New Issue
Block a user