diff --git a/HISTORY.rst b/HISTORY.rst index 9d2e66e9..89f4c83a 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -13,8 +13,11 @@ PlatformIO 2.0 Cortex-M3 MCU based boards (Arduino Due, etc) (`issue #710 `_) * Fixed missing trailing ``\`` for the source files list when generate project - for Qt Creator IDE + for `Qt Creator IDE `__ (`issue #711 `_) +* Split source files to ``HEADERS`` and ``SOURCES`` when generate project + for `Qt Creator IDE `__ + (`issue #713 `_) 2.11.0 (2016-06-28) ~~~~~~~~~~~~~~~~~~~ diff --git a/platformio/ide/projectgenerator.py b/platformio/ide/projectgenerator.py index aa78b691..3347ae8d 100644 --- a/platformio/ide/projectgenerator.py +++ b/platformio/ide/projectgenerator.py @@ -20,7 +20,6 @@ from os.path import (abspath, basename, expanduser, isdir, join, normpath, relpath) import bottle -import click # pylint: disable=wrong-import-order from platformio import app, exception, util diff --git a/platformio/ide/tpls/qtcreator/platformio.pro.tpl b/platformio/ide/tpls/qtcreator/platformio.pro.tpl index 21155e67..2ae9d49d 100644 --- a/platformio/ide/tpls/qtcreator/platformio.pro.tpl +++ b/platformio/ide/tpls/qtcreator/platformio.pro.tpl @@ -17,9 +17,12 @@ INCLUDEPATH += "{{include}}" DEFINES += "{{define}}" % end -OTHER_FILES += \ - platformio.ini +OTHER_FILES += platformio.ini % for file in src_files: +% if file.endswith((".h", ".hpp")): +HEADERS += {{file}} +% else: SOURCES += {{file}} % end +% end