feat: Generate MaterialDesign.js from CMake

This commit is contained in:
Curve 2020-11-24 16:50:16 +01:00
parent cbaafa1982
commit 2ccc7aeafa
2 changed files with 8 additions and 1 deletions

3
.gitignore vendored
View File

@ -2,4 +2,5 @@ build
cmake-build-debug
.idea
.vscode
.history
.history
src/*.js

View File

@ -1,6 +1,12 @@
cmake_minimum_required(VERSION 3.0.0)
project(soundux VERSION 0.1.0)
if (NOT EXISTS "${CMAKE_SOURCE_DIR}/src/MaterialDesign.js")
execute_process(COMMAND python "${CMAKE_SOURCE_DIR}/lib/generateMaterialDesignJs.py"
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}/lib")
message("Generated MaterialDesign.js")
endif()
file(GLOB src
"src/*.cpp"
"src/*.qml"