2015-09-29 00:23:46 +05:30
|
|
|
cmake_minimum_required(VERSION 3.1)
|
2015-08-19 05:36:32 +05:30
|
|
|
project(rainbow)
|
|
|
|
|
|
|
|
find_package(Qt5Core REQUIRED QUIET)
|
|
|
|
find_package(Qt5Gui REQUIRED QUIET)
|
|
|
|
|
|
|
|
set(RAINBOW_SOURCES
|
|
|
|
src/rainbow.cpp
|
|
|
|
)
|
|
|
|
|
2015-08-21 11:10:39 +05:30
|
|
|
add_definitions(-DRAINBOW_LIBRARY)
|
|
|
|
add_library(rainbow SHARED ${RAINBOW_SOURCES})
|
2015-09-29 00:23:46 +05:30
|
|
|
target_include_directories(rainbow PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/include")
|
2015-08-19 05:36:32 +05:30
|
|
|
|
|
|
|
qt5_use_modules(rainbow Core Gui)
|