Fix for building qt-components on Mac OS X. Master branch.
This commit is contained in:
parent
bdb766e7cf
commit
9afb2cbbac
2 changed files with 10 additions and 3 deletions
11
telldus-gui/3rdparty/qt-components-desktop.cmake
vendored
11
telldus-gui/3rdparty/qt-components-desktop.cmake
vendored
|
@ -35,13 +35,18 @@ ENDFOREACH(_FILE)
|
||||||
QT4_WRAP_CPP( MOC_SRCS ${HDRS} )
|
QT4_WRAP_CPP( MOC_SRCS ${HDRS} )
|
||||||
QT4_AUTOMOC ( ${SRCS} )
|
QT4_AUTOMOC ( ${SRCS} )
|
||||||
|
|
||||||
|
SET(LIBRARIES ${QT_LIBRARIES})
|
||||||
|
|
||||||
|
IF (APPLE)
|
||||||
|
FIND_LIBRARY(CARBON_LIBRARY Carbon)
|
||||||
|
LIST(APPEND LIBRARIES ${CARBON_LIBRARY})
|
||||||
|
ENDIF ()
|
||||||
|
|
||||||
ADD_LIBRARY(styleplugin SHARED
|
ADD_LIBRARY(styleplugin SHARED
|
||||||
${SRCS}
|
${SRCS}
|
||||||
${MOC_SRCS}
|
${MOC_SRCS}
|
||||||
)
|
)
|
||||||
TARGET_LINK_LIBRARIES( styleplugin ${QT_LIBRARIES} )
|
TARGET_LINK_LIBRARIES( styleplugin ${LIBRARIES} )
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
IF (WIN32)
|
IF (WIN32)
|
||||||
SET_TARGET_PROPERTIES(styleplugin PROPERTIES
|
SET_TARGET_PROPERTIES(styleplugin PROPERTIES
|
||||||
|
|
|
@ -26,6 +26,8 @@ INCLUDE( ../TelldusCenterPlugin.cmake NO_POLICY_SCOPE )
|
||||||
|
|
||||||
IF (WIN32)
|
IF (WIN32)
|
||||||
SET(QT_COMPONENTS_OUTPUT_DIR "${LIBRARY_OUTPUT_PATH}/${CMAKE_CFG_INTDIR}/Plugins/declarative")
|
SET(QT_COMPONENTS_OUTPUT_DIR "${LIBRARY_OUTPUT_PATH}/${CMAKE_CFG_INTDIR}/Plugins/declarative")
|
||||||
|
ELSEIF (APPLE)
|
||||||
|
SET(QT_COMPONENTS_OUTPUT_DIR "${CMAKE_BINARY_DIR}/${CMAKE_CFG_INTDIR}/TelldusCenter.app/Contents/Plugins/declarative")
|
||||||
ELSE()
|
ELSE()
|
||||||
SET(QT_COMPONENTS_OUTPUT_DIR "${CMAKE_BINARY_DIR}/TelldusCenter/Plugins/declarative")
|
SET(QT_COMPONENTS_OUTPUT_DIR "${CMAKE_BINARY_DIR}/TelldusCenter/Plugins/declarative")
|
||||||
ENDIF()
|
ENDIF()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue