Skip to content

Commit

Permalink
Generating examples.qrc from configure.py instead of qmake.
Browse files Browse the repository at this point in the history
  • Loading branch information
andeplane committed May 5, 2017
1 parent 176a60f commit 179f306
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
6 changes: 4 additions & 2 deletions configure.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,12 @@ def run_command(cmd):

lammps_build_type = "atomify"
env = os.environ.copy()

currentPath = os.getcwd()
# Set up examples
run_command("git submodule update --init --recursive")

os.chdir(os.path.join("src","examples"))
run_command("python generateExamples.py")
os.chdir(currentPath)
# Set up LAMMPS

if _platform == "darwin":
Expand Down
4 changes: 0 additions & 4 deletions src/src.pro
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,6 @@ include(deployment.pri)
include(../libs/SimVis/package_vendor.pri)
include(../libs/QmlPreviewer/qmlpreviewer.pri)

!exists(examples/examples.qrc) {
system(cd examples; python generateExamples.py)
}

!exists(examples/examples.qrc) {
error("examples/examples.qrc missing. Did you forget to run python configure.py?")
}
Expand Down

0 comments on commit 179f306

Please sign in to comment.