Created
March 8, 2015 01:29
-
-
Save muupan/e951f9712db2073b7f0c to your computer and use it in GitHub Desktop.
CMakeLists.txt that makes all the header and source files visible from Qt Creator
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# CMakeLists.txt that makes all the header and source files visible from Qt Creator | |
cmake_minimum_required(VERSION 2.8) | |
execute_process( | |
COMMAND find . -name *.cpp -or -name *.hpp -or -name *.h -or -name *.cc -or -name *.hh | |
COMMAND tr "\n" ";" | |
OUTPUT_VARIABLE QTCREATOR_SRCS | |
OUTPUT_STRIP_TRAILING_WHITESPACE | |
) | |
add_custom_target(qtcreator SOURCES ${QTCREATOR_SRCS}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment