pollymc/libraries/rainbow/CMakeLists.txt
2022-02-12 17:02:54 +01:00

23 lines
542 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(PolyMC_rainbow SHARED ${RAINBOW_SOURCES})
target_include_directories(PolyMC_rainbow PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/include")
target_link_libraries(PolyMC_rainbow Qt5::Core Qt5::Gui)
# Install it
install(
TARGETS PolyMC_rainbow
RUNTIME DESTINATION ${LIBRARY_DEST_DIR}
LIBRARY DESTINATION ${LIBRARY_DEST_DIR}
)