forked from openkylin/qt5-ukui-platformtheme
32 lines
592 B
CMake
32 lines
592 B
CMake
cmake_minimum_required(VERSION 3.16)
|
|
|
|
project(highlighted-icon-button)
|
|
|
|
set(CMAKE_AUTOUIC ON)
|
|
set(CMAKE_AUTOMOC ON)
|
|
set(CMAKE_AUTORCC ON)
|
|
|
|
set(CMAKE_CXX_STANDARD 11)
|
|
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
|
|
|
set(QT_MIN_VERSION "5.12.0")
|
|
|
|
find_package(Qt5 ${QT_MIN_VERSION} CONFIG REQUIRED COMPONENTS
|
|
Core
|
|
Widgets
|
|
Gui
|
|
)
|
|
|
|
file(GLOB_RECURSE sources "*.h" "*.hpp" "*.cpp" "*.c" "*.ui")
|
|
|
|
source_group(TREE ${CMAKE_CURRENT_SOURCE_DIR} FILES ${sources})
|
|
|
|
add_executable(${PROJECT_NAME} ${sources})
|
|
|
|
target_link_libraries(${PROJECT_NAME} PRIVATE
|
|
Qt5::Widgets
|
|
Qt5::Core
|
|
Qt5::Gui
|
|
)
|
|
|