Revert "refactor(build): link rainbow statically"

Windows build fails for some reason. Needs to be investigated later

This reverts commit 812f00eb81.
This commit is contained in:
Sefa Eyeoglu 2022-02-12 16:56:35 +01:00
parent 6ba031f048
commit a60b2feb5f
No known key found for this signature in database
GPG Key ID: C10411294912A422

View File

@ -8,10 +8,15 @@ set(RAINBOW_SOURCES
src/rainbow.cpp
)
add_library(Launcher_rainbow ${RAINBOW_SOURCES})
target_compile_definitions(Launcher_rainbow PRIVATE RAINBOW_LIBRARY)
target_compile_definitions(Launcher_rainbow PRIVATE RAINBOW_STATIC)
target_include_directories(Launcher_rainbow PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/include" "${CMAKE_CURRENT_BINARY_DIR}")
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}
)