NOISSUE fix librainbow some more

This commit is contained in:
Petr Mrázek 2015-08-21 07:40:39 +02:00
parent e5f7676622
commit 875c707358
2 changed files with 3 additions and 4 deletions

View File

@ -107,7 +107,7 @@ elseif(WIN32)
endif()
# directories to look for dependencies
set(DIRS ${QT_LIBS_DIR} ${QT_LIBEXECS_DIR})
set(DIRS ${QT_LIBS_DIR} ${QT_LIBEXECS_DIR} ${CMAKE_LIBRARY_OUTPUT_DIRECTORY} ${CMAKE_RUNTIME_OUTPUT_DIRECTORY})
################################ FILES ################################

View File

@ -13,9 +13,8 @@ include/rainbow.h
src/rainbow.cpp
)
#add_definitions(-DRAINBOW_LIBRARY)
add_definitions(-DRAINBOW_STATIC)
add_definitions(-DRAINBOW_LIBRARY)
set(RAINBOW_INCLUDE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/include" PARENT_SCOPE)
add_library(rainbow STATIC ${RAINBOW_SOURCES})
add_library(rainbow SHARED ${RAINBOW_SOURCES})
qt5_use_modules(rainbow Core Gui)