diff options
author | Michele Calgaro <[email protected]> | 2020-06-15 11:07:08 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2020-06-15 12:02:20 +0900 |
commit | 5cbc7366297bcfa14c98fb8bb23f887cf923d821 (patch) | |
tree | c2747cc50ade09145b1ae5b5c57066b2cb3efd1d /src | |
parent | 8d8fb919bed4777ea9d21b63411d3630bf3de5a7 (diff) | |
download | kmplayer-5cbc7366297bcfa14c98fb8bb23f887cf923d821.tar.gz kmplayer-5cbc7366297bcfa14c98fb8bb23f887cf923d821.zip |
Fixed FTBFS due to missing linked libraries.
Signed-off-by: Michele Calgaro <[email protected]>
(cherry picked from commit 56421bd79cd713d05b296b23e605f66ac5aa56a9)
Diffstat (limited to 'src')
-rw-r--r-- | src/CMakeLists.txt | 3 | ||||
-rw-r--r-- | src/ConfigureChecks.cmake | 18 |
2 files changed, 21 insertions, 0 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 1da6cdc..ceae060 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -1,3 +1,5 @@ +include( ConfigureChecks.cmake ) + include_directories( ${CMAKE_BINARY_DIR} ${CMAKE_CURRENT_BINARY_DIR} @@ -117,6 +119,7 @@ tde_add_executable( kxineplayer AUTOMOC tdeio-shared kmplayerbackend-static ${XINE_LIBRARIES} + ${XEXT_LIBRARIES} DESTINATION ${BIN_INSTALL_DIR} ) diff --git a/src/ConfigureChecks.cmake b/src/ConfigureChecks.cmake new file mode 100644 index 0000000..5be8176 --- /dev/null +++ b/src/ConfigureChecks.cmake @@ -0,0 +1,18 @@ +################################################# +# +# (C) 2020 Michele Calgaro +# michele (DOT) calgaro (AT) yahoo (DOT) it +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +## test for libXext +pkg_search_module( XEXT xext ) +if( XEXT_FOUND ) + check_include_file( "X11/extensions/shape.h" HAVE_X11_EXTENSIONS_SHAPE_H ) +else( ) + tde_message_fatal( "Xext is required, but was not found on your system." ) +endif( ) |