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)
|
2016-12-28 21:53:48 +05:30
|
|
|
add_library(MultiMC_rainbow SHARED ${RAINBOW_SOURCES})
|
|
|
|
target_include_directories(MultiMC_rainbow PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/include")
|
2015-08-19 05:36:32 +05:30
|
|
|
|
2018-06-01 19:50:33 +05:30
|
|
|
target_link_libraries(MultiMC_rainbow Qt5::Core Qt5::Gui)
|
2018-01-22 08:58:07 +05:30
|
|
|
|
|
|
|
# Install it
|
2018-01-27 07:12:27 +05:30
|
|
|
install(
|
|
|
|
TARGETS MultiMC_rainbow
|
|
|
|
RUNTIME DESTINATION ${LIBRARY_DEST_DIR}
|
|
|
|
LIBRARY DESTINATION ${LIBRARY_DEST_DIR}
|
|
|
|
)
|