30 lines
800 B
CMake
30 lines
800 B
CMake
cmake_minimum_required(VERSION 3.9.4)
|
|
project(rainbow)
|
|
|
|
find_package(Qt5Core REQUIRED QUIET)
|
|
find_package(Qt5Gui REQUIRED QUIET)
|
|
|
|
set(RAINBOW_SOURCES
|
|
src/rainbow.cpp
|
|
)
|
|
|
|
<<<<<<< HEAD
|
|
add_definitions(-DRAINBOW_LIBRARY)
|
|
add_library(SneedMC_rainbow SHARED ${RAINBOW_SOURCES})
|
|
target_include_directories(SneedMC_rainbow PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/include")
|
|
|
|
target_link_libraries(SneedMC_rainbow Qt5::Core Qt5::Gui)
|
|
|
|
# Install it
|
|
install(
|
|
TARGETS SneedMC_rainbow
|
|
RUNTIME DESTINATION ${LIBRARY_DEST_DIR}
|
|
LIBRARY DESTINATION ${LIBRARY_DEST_DIR}
|
|
)
|
|
=======
|
|
add_library(Launcher_rainbow STATIC ${RAINBOW_SOURCES})
|
|
target_include_directories(Launcher_rainbow PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/include")
|
|
|
|
target_link_libraries(Launcher_rainbow Qt5::Core Qt5::Gui)
|
|
>>>>>>> upstream/develop
|