166e5a03d6
* Added install commands to the libraries instead of force installing files * Most of the application cmake stuff moved to top level * RPATH should now be set/cleared correctly * Contains a fix for GH-1780
19 lines
468 B
CMake
19 lines
468 B
CMake
cmake_minimum_required(VERSION 3.1)
|
|
project(rainbow)
|
|
|
|
find_package(Qt5Core REQUIRED QUIET)
|
|
find_package(Qt5Gui REQUIRED QUIET)
|
|
|
|
set(RAINBOW_SOURCES
|
|
src/rainbow.cpp
|
|
)
|
|
|
|
add_definitions(-DRAINBOW_LIBRARY)
|
|
add_library(MultiMC_rainbow SHARED ${RAINBOW_SOURCES})
|
|
target_include_directories(MultiMC_rainbow PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/include")
|
|
|
|
qt5_use_modules(MultiMC_rainbow Core Gui)
|
|
|
|
# Install it
|
|
install(TARGETS MultiMC_rainbow DESTINATION ${LIBRARY_DEST_DIR})
|