Last active
June 13, 2019 16:17
-
-
Save horatiu-udrea/ea13ef1e598d1b1a7e0bcbb7d5a52348 to your computer and use it in GitHub Desktop.
CLion Qt configuration
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
cmake_minimum_required(VERSION 3.13) | |
project(TestProject) | |
set(CMAKE_CXX_STANDARD 14) | |
set(CMAKE_AUTOMOC ON) | |
set(CMAKE_AUTOUIC ON) | |
set(CMAKE_AUTORCC ON) | |
set(CMAKE_INCLUDE_CURRENT_DIR ON) | |
file(GLOB headerFiles "*.h") | |
file(GLOB sourceFiles "*.cpp") | |
file(GLOB resourceFiles "*.qrc") | |
find_package(Qt5Widgets CONFIG REQUIRED) | |
include_directories(${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_PROJECT_NAME}_autogen/include) | |
add_executable(${CMAKE_PROJECT_NAME} | |
main.cpp | |
${sourceFiles} | |
${headerFiles} | |
${resourceFiles} | |
) | |
target_link_libraries(${CMAKE_PROJECT_NAME} Qt5::Widgets) | |
# add Qt compiler /bin to PATH | |
#Optional External tools | |
# | |
#In "File -> Settings -> Tools -> External Tools" add the tools: | |
# | |
#Qt Creator: | |
# | |
#Program: "PATH_TO_QT/QT_VERSION/QT_ARCH/Tools/QtCreator/bin/qtcreator" | |
#Arguments: $FilePath$ | |
# | |
# | |
#UI Designer: | |
# | |
#Program: "PATH_TO_QT/QT_VERSION/QT_ARCH/lib/bin/designer") | |
#Arguments: $FilePath$ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment