2015-09-28 19:53:46 +01:00
|
|
|
cmake_minimum_required(VERSION 3.1)
|
2015-08-19 01:06:32 +01:00
|
|
|
project(rainbow)
|
|
|
|
|
|
|
|
find_package(Qt5Core REQUIRED QUIET)
|
|
|
|
find_package(Qt5Gui REQUIRED QUIET)
|
|
|
|
|
|
|
|
set(RAINBOW_SOURCES
|
|
|
|
src/rainbow.cpp
|
|
|
|
)
|
|
|
|
|
2022-02-12 15:56:35 +00:00
|
|
|
add_definitions(-DRAINBOW_LIBRARY)
|
2022-02-12 16:02:54 +00:00
|
|
|
add_library(PolyMC_rainbow SHARED ${RAINBOW_SOURCES})
|
|
|
|
target_include_directories(PolyMC_rainbow PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/include")
|
2015-08-19 01:06:32 +01:00
|
|
|
|
2022-02-12 16:02:54 +00:00
|
|
|
target_link_libraries(PolyMC_rainbow Qt5::Core Qt5::Gui)
|
2018-01-22 03:28:07 +00:00
|
|
|
|
2022-02-12 15:56:35 +00:00
|
|
|
# Install it
|
|
|
|
install(
|
2022-02-12 16:02:54 +00:00
|
|
|
TARGETS PolyMC_rainbow
|
2022-02-12 15:56:35 +00:00
|
|
|
RUNTIME DESTINATION ${LIBRARY_DEST_DIR}
|
|
|
|
LIBRARY DESTINATION ${LIBRARY_DEST_DIR}
|
|
|
|
)
|