git-svn-id: svn://db.shs.com.ru/libs@228 a8b55f48-bf90-11e4-a774-851b48703e85
This commit is contained in:
@@ -66,7 +66,7 @@ endmacro()
|
||||
macro(qad_plugin NAME _LIBS)
|
||||
project(qad_${NAME}_plugin)
|
||||
include_directories("..")
|
||||
set(LIBS ${_${NAME}_LIBS} qad_${NAME} "${_LIBS}")
|
||||
set(LIBS ${_${NAME}_LIBS} qad_${NAME} ${QT_QTCORE_LIBRARY} ${QT_QTGUI_LIBRARY} ${QT_QTDESIGNER_LIBRARY} "${_LIBS}")
|
||||
#message(${_${NAME}_PLUGIN_LIBS})
|
||||
add_definitions(-DQT_PLUGIN)
|
||||
add_definitions(-DQT_NO_DEBUG)
|
||||
@@ -76,7 +76,7 @@ macro(qad_plugin NAME _LIBS)
|
||||
file(GLOB PCPPS "./*.cpp")
|
||||
qt4_wrap_cpp(PCMOCS ${PMOCS} OPTIONS -nw)
|
||||
add_library(${PROJECT_NAME} SHARED ${PCMOCS} ${PCPPS} ${PMOCS})
|
||||
target_link_libraries(${PROJECT_NAME} ${LIBS} ${QT_QTDESIGNER_LIBRARY})
|
||||
target_link_libraries(${PROJECT_NAME} ${LIBS})
|
||||
install(TARGETS ${PROJECT_NAME} DESTINATION ${QT_PLUGINS_DIR}/designer)
|
||||
endmacro()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user