mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-23 18:32:49 +00:00
39 lines
993 B
CMake
39 lines
993 B
CMake
project(kpty)
|
|
|
|
include_directories( ${KDE4_KDECORE_INCLUDES} )
|
|
include_directories( ${QT_INCLUDES} )
|
|
|
|
set(kpty_LIB_SRCS
|
|
kpty.cpp
|
|
kptydevice.cpp
|
|
kptyprocess.cpp
|
|
)
|
|
|
|
kde4_add_library(kpty ${LIBRARY_TYPE} ${kpty_LIB_SRCS})
|
|
|
|
target_link_libraries(kpty PRIVATE ${KDE4_KDECORE_LIBS} ${UTIL_LIBRARY} ${UTEMPTER_LIBRARY})
|
|
target_link_libraries(kpty PUBLIC kdecore ${QT_QTCORE_LIBRARY} )
|
|
|
|
set_target_properties(kpty PROPERTIES
|
|
VERSION ${GENERIC_LIB_VERSION}
|
|
SOVERSION ${GENERIC_LIB_SOVERSION}
|
|
)
|
|
install(TARGETS kpty EXPORT kdelibsLibraryTargets ${INSTALL_TARGETS_DEFAULT_ARGS})
|
|
|
|
install( FILES
|
|
kpty_export.h
|
|
kpty.h
|
|
kptydevice.h
|
|
kptyprocess.h
|
|
DESTINATION ${INCLUDE_INSTALL_DIR} COMPONENT Devel
|
|
)
|
|
|
|
########### next target ###############
|
|
|
|
if (NOT HAVE_OPENPTY)
|
|
kde4_add_executable(kgrantpty NOGUI kgrantpty.c)
|
|
target_link_libraries(kgrantpty kdefakes)
|
|
install(TARGETS kgrantpty DESTINATION ${LIBEXEC_INSTALL_DIR})
|
|
endif (NOT HAVE_OPENPTY)
|
|
|
|
add_subdirectory( tests )
|