mirror of
https://github.com/MultiMC/MultiMC5.git
synced 2024-12-25 15:16:02 +00:00
441ab7eedc
This is probably very broken on macOS and Windows and will need a lot of work to complete fully.
23 lines
550 B
CMake
23 lines
550 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(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
|
|
RUNTIME DESTINATION ${LIBRARY_DEST_DIR}
|
|
LIBRARY DESTINATION ${LIBRARY_DEST_DIR}
|
|
)
|