MultiMC5/libraries/rainbow/CMakeLists.txt

23 lines
550 B
CMake
Raw Normal View History

2015-09-28 18:53:46 +00:00
cmake_minimum_required(VERSION 3.1)
project(rainbow)
find_package(Qt5Core REQUIRED QUIET)
find_package(Qt5Gui REQUIRED QUIET)
set(RAINBOW_SOURCES
src/rainbow.cpp
)
2015-08-21 05:40:39 +00:00
add_definitions(-DRAINBOW_LIBRARY)
add_library(Launcher_rainbow SHARED ${RAINBOW_SOURCES})
target_include_directories(Launcher_rainbow PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/include")
target_link_libraries(Launcher_rainbow Qt5::Core Qt5::Gui)
# Install it
install(
TARGETS Launcher_rainbow
2018-07-15 12:51:05 +00:00
RUNTIME DESTINATION ${LIBRARY_DEST_DIR}
LIBRARY DESTINATION ${LIBRARY_DEST_DIR}
)