kdelibs/kpty/CMakeLists.txt
Ivailo Monev 04506de1e7 generic: build system cleanups
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2015-11-02 19:10:29 +02:00

49 lines
923 B
CMake

project(kpty)
include_directories(${KDE4_KDECORE_INCLUDES})
set(kpty_LIB_SRCS
kpty.cpp
kptydevice.cpp
kptyprocess.cpp
)
add_library(kpty ${LIBRARY_TYPE} ${kpty_LIB_SRCS})
target_link_libraries(kpty
${KDE4_KDECORE_LIBS}
${UTIL_LIBRARY}
${UTEMPTER_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)
add_executable(kgrantpty kgrantpty.c)
target_link_libraries(kgrantpty kdefakes)
install(TARGETS kgrantpty DESTINATION ${LIBEXEC_INSTALL_DIR})
endif()
if(ENABLE_TESTING)
add_subdirectory(tests)
endif()