2014-11-13 01:04:59 +02:00
|
|
|
project(kpty)
|
|
|
|
|
2015-09-06 14:43:27 +03:00
|
|
|
include_directories(${KDE4_KDECORE_INCLUDES} ${QT_INCLUDES})
|
2014-11-13 01:04:59 +02:00
|
|
|
|
|
|
|
set(kpty_LIB_SRCS
|
2015-09-01 01:05:33 +03:00
|
|
|
kpty.cpp
|
|
|
|
kptydevice.cpp
|
|
|
|
kptyprocess.cpp
|
2014-11-13 01:04:59 +02:00
|
|
|
)
|
|
|
|
|
2015-09-01 01:05:33 +03:00
|
|
|
add_library(kpty ${LIBRARY_TYPE} ${kpty_LIB_SRCS})
|
2014-11-13 01:04:59 +02:00
|
|
|
|
2015-06-25 00:27:48 +03:00
|
|
|
target_link_libraries(kpty PRIVATE ${KDE4_KDECORE_LIBS} ${UTIL_LIBRARY} ${UTEMPTER_LIBRARY})
|
2015-09-06 14:43:27 +03:00
|
|
|
target_link_libraries(kpty PUBLIC kdecore ${QT_QTCORE_LIBRARY})
|
2014-11-13 01:04:59 +02:00
|
|
|
|
|
|
|
set_target_properties(kpty PROPERTIES
|
|
|
|
VERSION ${GENERIC_LIB_VERSION}
|
|
|
|
SOVERSION ${GENERIC_LIB_SOVERSION}
|
|
|
|
)
|
|
|
|
install(TARGETS kpty EXPORT kdelibsLibraryTargets ${INSTALL_TARGETS_DEFAULT_ARGS})
|
|
|
|
|
2015-09-06 14:43:27 +03:00
|
|
|
install(FILES
|
2014-11-13 01:04:59 +02:00
|
|
|
kpty_export.h
|
|
|
|
kpty.h
|
|
|
|
kptydevice.h
|
|
|
|
kptyprocess.h
|
|
|
|
DESTINATION ${INCLUDE_INSTALL_DIR} COMPONENT Devel
|
|
|
|
)
|
|
|
|
|
|
|
|
########### next target ###############
|
|
|
|
|
2015-09-01 01:05:33 +03:00
|
|
|
if(NOT HAVE_OPENPTY)
|
|
|
|
add_executable(kgrantpty kgrantpty.c)
|
|
|
|
target_link_libraries(kgrantpty kdefakes)
|
|
|
|
install(TARGETS kgrantpty DESTINATION ${LIBEXEC_INSTALL_DIR})
|
|
|
|
endif(NOT HAVE_OPENPTY)
|
2014-11-13 01:04:59 +02:00
|
|
|
|
2015-09-01 01:05:33 +03:00
|
|
|
if(ENABLE_TESTING)
|
|
|
|
add_subdirectory( tests )
|
|
|
|
endif()
|