diff options
author | Michele Calgaro <[email protected]> | 2023-08-04 16:23:49 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2023-08-06 16:37:52 +0900 |
commit | 4aae9b72d7164684622eab039f82833d02d3ce7a (patch) | |
tree | 650f523ea071491ec9f9b94b3ea083fd07b843f7 /src/CMakeLists.txt | |
parent | 9f7c0362e26f62dc81769ab55a89e32c3c9a268d (diff) | |
download | k9copy-4aae9b72d7164684622eab039f82833d02d3ce7a.tar.gz k9copy-4aae9b72d7164684622eab039f82833d02d3ce7a.zip |
Conversion to cmake build system
Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'src/CMakeLists.txt')
-rw-r--r-- | src/CMakeLists.txt | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt new file mode 100644 index 0000000..0b70b10 --- /dev/null +++ b/src/CMakeLists.txt @@ -0,0 +1,60 @@ +include_directories( + ${CMAKE_CURRENT_SOURCE_DIR} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_BINARY_DIR} + ${CMAKE_SOURCE_DIR}/k9Mplayer + ${CMAKE_SOURCE_DIR}/k9author + ${CMAKE_SOURCE_DIR}/k9decmpeg + ${CMAKE_SOURCE_DIR}/k9devices + ${CMAKE_SOURCE_DIR}/k9vamps + ${CMAKE_SOURCE_DIR}/libdvdnav + ${CMAKE_SOURCE_DIR}/libk9copy + ${TDE_INCLUDE_DIR} +) + +link_directories( + ${TDE_LIB_DIR} + ${LIBAVCODEC_LIBRARY_DIRS} + ${LIBAVFORMAT_LIBRARY_DIRS} + ${LIBAVUTIL_LIBRARY_DIRS} + ${LIBSWSCALE_LIBRARY_DIRS} +) + +##### k9copy (executable) +file( GLOB _lib_cpp_files RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp ) +file( GLOB _lib_ui_files RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/*.ui ) + +tde_add_executable( k9copy AUTOMOC + SOURCES ${_lib_cpp_files} ${_lib_ui_files} + LINK + k9mplayer-static k9author-static k9decmpeg-static k9devices-static + k9vamps-static k9dvdnav-static k9copy-static + tdecore-shared tdefx-shared tdeui-shared tdeio-shared tdehtml-shared + tdetexteditor-shared tdeparts-shared tdemdi-shared DCOP-shared + ${LIBAVCODEC_LIBRARIES} ${LIBAVFORMAT_LIBRARIES} ${LIBAVUTIL_LIBRARIES} + ${LIBSWSCALE_LIBRARIES} ${LIBDVDREAD_LIBRARIES} ${K3BDEVICE_LIBRARY} + DESTINATION ${BIN_INSTALL_DIR} +) + + +##### app icon + +tde_install_icons( ${PROJECT_NAME} ) + + +##### other files + +install( + FILES anim.mng k9copyui.rc mencoder.xml + DESTINATION ${DATA_INSTALL_DIR}/k9copy +) + +tde_create_translated_desktop( + SOURCE k9copy_open.desktop + DESTINATION ${DATA_INSTALL_DIR}/konqueror/servicemenus +) + +tde_create_translated_desktop( + SOURCE k9copy.desktop + DESTINATION ${XDG_APPS_INSTALL_DIR} +) |