2015-11-02 19:10:29 +02:00
|
|
|
include_directories(
|
|
|
|
${CMAKE_SOURCE_DIR}
|
|
|
|
${KDE4_KDECORE_INCLUDES}
|
|
|
|
${KDE4_KDEUI_INCLUDES}
|
|
|
|
${KDE4_KIO_INCLUDES}
|
|
|
|
${CMAKE_SOURCE_DIR}/kross
|
|
|
|
)
|
2014-11-13 01:04:59 +02:00
|
|
|
|
|
|
|
########### next target ###############
|
2015-11-02 19:10:29 +02:00
|
|
|
|
|
|
|
add_library(krossqtsplugin ${LIBRARY_TYPE} plugin.cpp)
|
|
|
|
|
|
|
|
target_link_libraries(krossqtsplugin
|
|
|
|
${QT_QTUITOOLS_LIBRARY}
|
|
|
|
${KDE4_KDECORE_LIBS}
|
|
|
|
${KDE4_KDEUI_LIBS}
|
|
|
|
krosscore
|
|
|
|
${QT_QTSCRIPT_LIBRARY}
|
|
|
|
)
|
|
|
|
|
|
|
|
set_target_properties(krossqtsplugin PROPERTIES
|
|
|
|
VERSION ${GENERIC_LIB_VERSION}
|
|
|
|
SOVERSION ${GENERIC_LIB_SOVERSION}
|
|
|
|
)
|
2014-11-13 01:04:59 +02:00
|
|
|
|
|
|
|
install(TARGETS krossqtsplugin DESTINATION ${PLUGIN_INSTALL_DIR}/plugins/script)
|
|
|
|
|
|
|
|
########### next target ###############
|
|
|
|
|
2015-11-02 19:10:29 +02:00
|
|
|
# add_executable(krossqtstest main.cpp)
|
2015-09-01 01:05:33 +03:00
|
|
|
# target_link_libraries(krossqtstest ${KDE4_KDEUI_LIBS} krossqtsplugin ${QT_QTSCRIPT_LIBRARY})
|
2014-11-13 01:04:59 +02:00
|
|
|
# set(krossqtsplugintest_SRCS main.cpp)
|
|
|
|
# target_link_libraries(krossqtsplugintest ${KDE4_KDECORE_LIBS} )
|
2015-09-01 01:05:33 +03:00
|
|
|
# add_executable(krossqtsplugintest ${krossqtsplugintest_SRCS})
|
2014-11-13 01:04:59 +02:00
|
|
|
# #install(TARGETS krossqtsplugintest DESTINATION ${BIN_INSTALL_DIR})
|
|
|
|
|
|
|
|
########### next target ###############
|
|
|
|
|
|
|
|
set(krossqts_PART_SRCS interpreter.cpp script.cpp)
|
2015-11-02 19:10:29 +02:00
|
|
|
|
2014-11-13 01:04:59 +02:00
|
|
|
kde4_add_plugin(krossqts ${krossqts_PART_SRCS})
|
2015-11-02 19:10:29 +02:00
|
|
|
|
|
|
|
target_link_libraries(krossqts
|
|
|
|
${KDE4_KDEUI_LIBS}
|
|
|
|
${KDE4_KDECORE_LIBS}
|
|
|
|
krosscore
|
|
|
|
${QT_QTSCRIPT_LIBRARY}
|
|
|
|
)
|
2014-11-13 01:04:59 +02:00
|
|
|
|
|
|
|
install(TARGETS krossqts DESTINATION ${PLUGIN_INSTALL_DIR})
|