Warning, /utilities/krename/src/CMakeLists.txt is written in an unsupported language. File is not indexed.

0001 add_subdirectory(pics)
0002 add_subdirectory(servicemenus)
0003 
0004 include_directories(${CMAKE_SOURCE_DIR}
0005                     ${CMAKE_CURRENT_SOURCE_DIR}
0006                     ${CMAKE_CURRENT_BINARY_DIR}
0007 )
0008 
0009 if(EXIV2_FOUND)
0010     include_directories(${EXIV2_INCLUDE_DIR})
0011 endif()
0012 
0013 if(PoDoFo_FOUND)
0014     include_directories(${PoDoFo_INCLUDE_DIRS})
0015     add_definitions(${PoDoFo_DEFINITIONS})
0016 endif()
0017 
0018 if(FREETYPE_FOUND)
0019     include_directories(${FREETYPE_INCLUDE_DIRS})
0020 endif()
0021 
0022 # Exiv2 needs exceptions
0023 kde_enable_exceptions()
0024 
0025 ########### next target ###############
0026 
0027 set(krename_SRCS
0028     main.cpp
0029 )
0030 
0031 set(libkrename_SRCS
0032     batchrenamer.cpp
0033     customdialog.cpp
0034     datetimeplugin.cpp
0035     dirsortplugin.cpp
0036     exthistorycombo.cpp
0037     filedialogextwidget.cpp
0038     fileplugin.cpp
0039     increasecounterplugin.cpp
0040     krenamefile.cpp
0041     krenameimpl.cpp
0042     krenamelistview.cpp
0043     krenamemodel.cpp
0044     krenametest.cpp
0045     krenametokensorter.cpp
0046     krenamewindow.cpp
0047     modeltest.cpp
0048     numberdialog.cpp
0049     insertpartfilenamedlg.cpp
0050     threadedlister.cpp
0051     plugin.cpp
0052     pluginloader.cpp
0053     permissionsplugin.cpp
0054     previewlist.cpp
0055     progressdialog.cpp
0056     replacedialog.cpp
0057     richtextitemdelegate.cpp
0058     scriptplugin.cpp
0059     startupinfo.cpp
0060     systemplugin.cpp
0061     tokenhelpdialog.cpp
0062     tokensortmodedialog.cpp
0063     translitplugin.cpp
0064     snumplugin.cpp
0065 )
0066 
0067 if(LibExiv2_FOUND)
0068     set(libkrename_SRCS ${libkrename_SRCS}
0069         exiv2plugin.cpp
0070     )
0071 endif()
0072 
0073 if(TAGLIB_FOUND)
0074     set(libkrename_SRCS ${libkrename_SRCS}
0075         taglibplugin.cpp
0076     )
0077 endif()
0078 
0079 if(PoDoFo_FOUND)
0080     set(libkrename_SRCS ${libkrename_SRCS}
0081         podofoplugin.cpp
0082     )
0083 endif()
0084 
0085 if(FREETYPE_FOUND)
0086     set(libkrename_SRCS ${libkrename_SRCS}
0087         fontplugin.cpp
0088     )
0089 endif()
0090 
0091 if(KF5Archive_FOUND)
0092     set(libkrename_SRCS ${libkrename_SRCS}
0093         odfplugin.cpp
0094     )
0095 endif()
0096 
0097 
0098 ki18n_wrap_ui(libkrename_SRCS
0099     customfilenamedlg.ui
0100     datetimepluginwidget.ui
0101     dirsortpluginwidget.ui
0102     increasecounterpluginwidget.ui
0103     guimodeselector.ui
0104     partfilenamewidget.ui
0105     krenamefiles.ui
0106     krenamedestination.ui
0107     krenamefilename.ui
0108     krenameplugins.ui
0109     numberwidget.ui
0110     permissionspluginwidget.ui
0111     progressdialog.ui
0112     replacewidget.ui
0113     replaceitemdlg.ui
0114     scriptpluginwidget.ui
0115     scriptplugindialog.ui
0116     startupinfowidget.ui
0117     tokenhelpwidget.ui
0118     tokensortmodedialog.ui
0119 )
0120 
0121 add_library(libkrename STATIC ${libkrename_SRCS})
0122 set_target_properties(libkrename PROPERTIES
0123     OUTPUT_NAME krename
0124 )
0125 
0126 target_link_libraries(libkrename
0127     KF5::Crash
0128     KF5::KIOCore
0129     KF5::KIOFileWidgets
0130     KF5::I18n
0131     KF5::IconThemes
0132     Qt5::Widgets
0133     Qt5::Qml
0134 )
0135 if(TAGLIB_FOUND)
0136     target_link_libraries(libkrename
0137         Taglib::Taglib
0138     )
0139 endif()
0140 if(LibExiv2_FOUND)
0141     target_link_libraries(libkrename
0142         LibExiv2::LibExiv2
0143     )
0144 endif()
0145 if(PoDoFo_FOUND)
0146     target_link_libraries(libkrename
0147         ${PoDoFo_LIBRARIES}
0148     )
0149 endif()
0150 if(KF5Archive_FOUND)
0151     target_link_libraries(libkrename
0152         Qt5::Xml
0153         KF5::Archive
0154     )
0155 endif()
0156 if(FREETYPE_FOUND)
0157     target_link_libraries(libkrename
0158         ${FREETYPE_LIBRARIES}
0159     )
0160 endif()
0161 
0162 add_executable(krename ${krename_SRCS})
0163 target_link_libraries(krename
0164     libkrename
0165 )
0166 
0167 # Others Files to install
0168 
0169 install(TARGETS krename DESTINATION ${KDE_INSTALL_BINDIR})
0170 install(PROGRAMS org.kde.krename.desktop DESTINATION ${KDE_INSTALL_APPDIR})
0171 install(FILES org.kde.krename.appdata.xml DESTINATION ${KDE_INSTALL_METAINFODIR})
0172