Skip to content

Commit

Permalink
Add automatic regeneration for CLion
Browse files Browse the repository at this point in the history
  • Loading branch information
jachris committed Nov 22, 2017
1 parent 1057d31 commit f16ce42
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion examples/cpp/clion.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import functools
import json
import subprocess
import sys

subprocess.check_call(['cook', '--results'])

Expand All @@ -15,7 +16,7 @@
w = functools.partial(print, file=file)
w('cmake_minimum_required(VERSION 2.8.8)')
w()
w('add_custom_target(COOK COMMAND cook '
w('add_custom_target(COOK COMMAND ' + sys.executable + ' clion.py COMMAND cook '
'WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR})')
w()

Expand Down

0 comments on commit f16ce42

Please sign in to comment.