2022-03-19 18:08:28 +01:00
|
|
|
cmake_minimum_required(VERSION 3.9.4)
|
2015-08-19 02:06:32 +02:00
|
|
|
project(rainbow)
|
|
|
|
|
2022-05-02 21:34:09 +02:00
|
|
|
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 02:06:32 +02:00
|
|
|
|
|
|
|
set(RAINBOW_SOURCES
|
|
|
|
src/rainbow.cpp
|
|
|
|
)
|
|
|
|
|
2022-03-18 10:28:35 +01:00
|
|
|
add_library(Launcher_rainbow STATIC ${RAINBOW_SOURCES})
|
2022-03-21 09:40:20 +01:00
|
|
|
target_include_directories(Launcher_rainbow PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/include")
|
2015-08-19 02:06:32 +02:00
|
|
|
|
2022-05-02 21:34:09 +02:00
|
|
|
target_link_libraries(Launcher_rainbow Qt${QT_VERSION_MAJOR}::Core Qt${QT_VERSION_MAJOR}::Gui)
|