You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tde-guidance/mountconfig/CMakeLists.txt

79 lines
1.7 KiB

include_directories(
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_BINARY_DIR}
${PYTHON_INCLUDE_DIR}
${TQT_INCLUDE_DIRS}
${TDE_INCLUDE_DIR}
)
link_directories(
${TQT_LIBRARY_DIRS}
${TDE_LIBRARY_DIRS}
)
##### generate kcm control module code
set( MODULE_NAME mountconfig )
set( _MODULEDIR_ ${DATA_INSTALL_DIR}/guidance )
set( _EXTRAMODULE_ ${TDE_GUIDANCE_DIST_PKG_PATH} )
set( _MODULENAME_ ${MODULE_NAME} )
set( _FACTORYFUNCTION_ create_${MODULE_NAME} )
configure_file(
${CMAKE_SOURCE_DIR}/templates/kcm_module_stub.cpp.cmake
${CMAKE_CURRENT_BINARY_DIR}/kcm_${MODULE_NAME}.cpp @ONLY
)
##### kcm_userconfig (module) #######################
tde_add_kpart( kcm_${MODULE_NAME} AUTOMOC
SOURCES ${CMAKE_CURRENT_BINARY_DIR}/kcm_${MODULE_NAME}.cpp
LINK
tdecore-shared tdeui-shared
${PYTHON_LIBRARIES} ${PYTHONIZE_LIBRARIES}
${CMAKE_DL_LIBS}
DESTINATION ${PLUGIN_INSTALL_DIR}
)
##### Generate UI files
add_custom_command(
OUTPUT fuser_ui.py
COMMAND ${PYTQUIC_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/fuser_ui.ui
-o ${CMAKE_CURRENT_BINARY_DIR}/fuser_ui.py
COMMENT "Gerenate fuser_ui.py"
)
add_custom_target( fuser_ui-pytquic ALL
DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/fuser_ui.py
)
##### other files
tde_create_translated_desktop(
SOURCE ${MODULE_NAME}.desktop
DESTINATION ${XDG_APPS_INSTALL_DIR}
)
install(
FILES
SimpleCommandRunner.py SMBShareSelectDialog.py MicroHAL.py
fuser.py ${CMAKE_CURRENT_BINARY_DIR}/fuser_ui.py sizeview.py
DESTINATION ${TDE_GUIDANCE_DIST_PKG_PATH}
)
install(
PROGRAMS ${MODULE_NAME}.py
DESTINATION ${TDE_GUIDANCE_DIST_PKG_PATH}
)
tde_install_symlink( ${TDE_GUIDANCE_DIST_PKG_PATH}/${MODULE_NAME}.py ${BIN_INSTALL_DIR}/${MODULE_NAME} )