2022-03-19 22:38:28 +05:30
|
|
|
cmake_minimum_required(VERSION 3.9.4)
|
2015-08-19 05:36:32 +05:30
|
|
|
project(rainbow)
|
|
|
|
|
2022-05-03 01:04:09 +05:30
|
|
|
if(QT_VERSION_MAJOR EQUAL 5)
|
|
|
|
find_package(Qt5 COMPONENTS Core Gui REQUIRED)
|
|
|
|
elseif(Launcher_QT_VERSION_MAJOR EQUAL 6)
|
|
|
|
find_package(Qt6 COMPONENTS Core Gui REQUIRED)
|
|
|
|
endif()
|
2015-08-19 05:36:32 +05:30
|
|
|
|
|
|
|
set(RAINBOW_SOURCES
|
|
|
|
src/rainbow.cpp
|
|
|
|
)
|
|
|
|
|
2022-03-18 14:58:35 +05:30
|
|
|
add_library(Launcher_rainbow STATIC ${RAINBOW_SOURCES})
|
2022-03-21 14:10:20 +05:30
|
|
|
target_include_directories(Launcher_rainbow PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/include")
|
2015-08-19 05:36:32 +05:30
|
|
|
|
2022-05-03 01:04:09 +05:30
|
|
|
target_link_libraries(Launcher_rainbow Qt${QT_VERSION_MAJOR}::Core Qt${QT_VERSION_MAJOR}::Gui)
|