1
0
mirror of https://gitlab.com/kelteseth/ScreenPlay.git synced 2024-11-22 18:52:30 +01:00
ScreenPlay/Tools/lint-cmake.py
Elias Steurer b5dae423cb Add new ci build script and check step
This is python based and is now functional for windows. We now
should be able to extend this script for linux and mac.

Move setup script to Tools folder.
2020-10-29 18:19:22 +01:00

14 lines
358 B
Python

import fnmatch
import os
import sys
import subprocess
executable = "cmake-lint"
if os.name == 'nt':
executable += ".exe"
for root, dirnames, filenames in os.walk('../'):
for filename in fnmatch.filter(filenames, 'CMakeLists.txt'):
print(executable, root + "/" + filename)
os.system(" %s %s" % (executable, (root + "/" + filename)))