kdelibs/kpty/CMakeLists.txt
Ivailo Monev 78933232a2 generic: remove build variable used to specify library type
only shared builds are supported now

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-06-10 23:19:17 +03:00

47 lines
814 B
CMake

project(kpty)
include_directories(${KDE4_KDECORE_INCLUDES})
set(kpty_LIB_SRCS
kpty.cpp
kptydevice.cpp
kptyprocess.cpp
)
add_library(kpty SHARED ${kpty_LIB_SRCS})
target_link_libraries(kpty PRIVATE
${UTIL_LIBRARY}
)
target_link_libraries(kpty PUBLIC
${KDE4_KDECORE_LIBS}
)
set_target_properties(kpty PROPERTIES
VERSION ${GENERIC_LIB_VERSION}
SOVERSION ${GENERIC_LIB_SOVERSION}
)
install(
TARGETS kpty
EXPORT kdelibsLibraryTargets
${INSTALL_TARGETS_DEFAULT_ARGS}
)
generate_export_header(kpty)
install(
FILES
${CMAKE_CURRENT_BINARY_DIR}/kpty_export.h
kpty.h
kptydevice.h
kptyprocess.h
DESTINATION ${KDE4_INCLUDE_INSTALL_DIR}
COMPONENT Devel
)
########### next target ###############
if(ENABLE_TESTING)
add_subdirectory(tests)
endif()