2014-11-13 01:04:59 +02:00
|
|
|
project(kpty)
|
|
|
|
|
2015-11-02 19:10:29 +02:00
|
|
|
include_directories(${KDE4_KDECORE_INCLUDES})
|
2014-11-13 01:04:59 +02:00
|
|
|
|
2023-08-27 05:41:32 +03:00
|
|
|
add_definitions(-DKDE_DEFAULT_DEBUG_AREA=175)
|
|
|
|
|
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
|
|
|
)
|
|
|
|
|
2023-06-10 23:05:53 +03:00
|
|
|
add_library(kpty SHARED ${kpty_LIB_SRCS})
|
2014-11-13 01:04:59 +02:00
|
|
|
|
2020-02-09 21:45:50 +00:00
|
|
|
target_link_libraries(kpty PRIVATE
|
2015-11-02 03:38:51 +02:00
|
|
|
${UTIL_LIBRARY}
|
|
|
|
)
|
2014-11-13 01:04:59 +02:00
|
|
|
|
2020-02-09 21:45:50 +00:00
|
|
|
target_link_libraries(kpty PUBLIC
|
2023-06-17 20:25:52 +03:00
|
|
|
kdecore
|
2020-02-09 21:45:50 +00:00
|
|
|
)
|
|
|
|
|
2014-11-13 01:04:59 +02:00
|
|
|
set_target_properties(kpty PROPERTIES
|
2015-11-02 03:38:51 +02:00
|
|
|
VERSION ${GENERIC_LIB_VERSION}
|
|
|
|
SOVERSION ${GENERIC_LIB_SOVERSION}
|
|
|
|
)
|
|
|
|
install(
|
|
|
|
TARGETS kpty
|
2023-06-17 23:57:38 +03:00
|
|
|
EXPORT kdelibsTargets
|
2023-06-17 09:11:52 +03:00
|
|
|
DESTINATION ${KDE4_LIB_INSTALL_DIR}
|
2014-11-13 01:04:59 +02:00
|
|
|
)
|
2015-11-02 03:38:51 +02:00
|
|
|
|
2016-04-27 18:43:11 +00:00
|
|
|
generate_export_header(kpty)
|
|
|
|
|
2015-11-02 03:38:51 +02:00
|
|
|
install(
|
|
|
|
FILES
|
2016-04-27 18:43:11 +00:00
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/kpty_export.h
|
2015-11-02 03:38:51 +02:00
|
|
|
kpty.h
|
|
|
|
kptydevice.h
|
|
|
|
kptyprocess.h
|
2021-02-26 20:15:41 +02:00
|
|
|
DESTINATION ${KDE4_INCLUDE_INSTALL_DIR}
|
2014-11-13 01:04:59 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
########### next target ###############
|
|
|
|
|
2015-09-01 01:05:33 +03:00
|
|
|
if(ENABLE_TESTING)
|
2015-11-02 03:38:51 +02:00
|
|
|
add_subdirectory(tests)
|
2015-09-01 01:05:33 +03:00
|
|
|
endif()
|