Created
March 19, 2016 11:28
-
-
Save Stolas/f8fcda20fb31a31208fe to your computer and use it in GitHub Desktop.
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.0.2) | |
project(PROJECT_NAME) | |
find_package(Qt5Widgets) | |
set(CMAKE_INCLUDE_CURRENT_DIR ON) | |
set(CMAKE_AUTO_MOC ON) | |
qt5_wrap_ui(UI_HEADERS mainwindow.ui) | |
qt5_wrap_cpp(MOC_SRC mainwindow.h) | |
add_executable(EXECUTABLE_NAME | |
main.cpp | |
mainwindow.cpp | |
${MOC_SRC} | |
${UI_HEADERS} | |
) | |
target_link_libraries(EXECUTABLE_NAME Qt5::Widgets) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment