kdelibs/kpty/CMakeLists.txt

53 lines
1 KiB
Text
Raw Normal View History

2014-11-13 01:04:59 +02:00
project(kpty)
include_directories(${KDE4_KDECORE_INCLUDES})
2014-11-13 01:04:59 +02:00
set(kpty_LIB_SRCS
kpty.cpp
kptydevice.cpp
kptyprocess.cpp
2014-11-13 01:04:59 +02:00
)
add_library(kpty ${LIBRARY_TYPE} ${kpty_LIB_SRCS})
2014-11-13 01:04:59 +02:00
target_link_libraries(kpty
${KDE4_KDECORE_LIBS}
${UTIL_LIBRARY}
${UTEMPTER_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}
2014-11-13 01:04:59 +02:00
)
generate_export_header(kpty)
install(
FILES
${CMAKE_CURRENT_BINARY_DIR}/kpty_export.h
kpty.h
kptydevice.h
kptyprocess.h
DESTINATION ${INCLUDE_INSTALL_DIR}
COMPONENT Devel
2014-11-13 01:04:59 +02:00
)
########### next target ###############
if(NOT HAVE_OPENPTY)
add_executable(kgrantpty kgrantpty.c)
# it needs only some fakes but they are part of kdecore now
target_link_libraries(kgrantpty ${KDE4_KDECORE_LIBS})
install(TARGETS kgrantpty DESTINATION ${LIBEXEC_INSTALL_DIR})
endif()
2014-11-13 01:04:59 +02:00
if(ENABLE_TESTING)
add_subdirectory(tests)
endif()