Warning, /utilities/isoimagewriter/isoimagewriter/CMakeLists.txt is written in an unsupported language. File is not indexed.
0001 set(GPGME_REQUIRED_VERSION "1.8.0") 0002 find_package(Gpgmepp ${GPGME_REQUIRED_VERSION} CONFIG) 0003 find_package(QGpgmeQt6 ${GPGME_REQUIRED_VERSION} CONFIG) 0004 0005 #find_package(KF6 REQUIRED COMPONENTS QGpgme) 0006 0007 ecm_setup_version(${PROJECT_VERSION} VARIABLE_PREFIX ISOIMAGEWRITER VERSION_HEADER isoimagewriter_version.h) 0008 0009 set(isoimagewriter_SRCS 0010 usbdevicemonitor.h 0011 common.cpp 0012 mainapplication.cpp 0013 mainwindow.cpp 0014 imagewriter.cpp 0015 physicaldevice.cpp 0016 isoverifier.cpp 0017 fetchisojob.cpp 0018 isolineedit.cpp 0019 0020 common.h 0021 mainapplication.h 0022 mainwindow.h 0023 imagewriter.h 0024 physicaldevice.h 0025 isoverifier.h 0026 fetchisojob.h 0027 isolineedit.h 0028 main.cpp 0029 ) 0030 0031 ecm_qt_declare_logging_category(isoimagewriter_SRCS 0032 HEADER isoimagewriter_debug.h 0033 IDENTIFIER ISOIMAGEWRITER_LOG 0034 CATEGORY_NAME org.kde.isoimagewriter 0035 DEFAULT_SEVERITY Debug) 0036 0037 if(CMAKE_SYSTEM_NAME STREQUAL Windows) 0038 message("Compiling isoimagewriter for Windows") 0039 set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} /MANIFEST:NO") 0040 set(isoimagewriter_SRCS 0041 ${isoimagewriter_SRCS} 0042 platform_win.cpp 0043 usbdevicemonitor_win.cpp 0044 externalprogressbar_win.cpp 0045 ../res/isoimagewriter.manifest 0046 ) 0047 elseif(CMAKE_SYSTEM_NAME STREQUAL Linux) 0048 message("Compiling isoimagewriter for Linux") 0049 set(isoimagewriter_SRCS 0050 ${isoimagewriter_SRCS} 0051 platform_lin.cpp 0052 usbdevicemonitor_lin.cpp 0053 externalprogressbar_lin.cpp 0054 ) 0055 elseif(CMAKE_SYSTEM_NAME STREQUAL FreeBSD) 0056 message("Compiling isoimagewriter for FreeBSD") 0057 set(isoimagewriter_SRCS 0058 ${isoimagewriter_SRCS} 0059 platform_lin.cpp 0060 usbdevicemonitor_lin.cpp 0061 externalprogressbar_lin.cpp 0062 ) 0063 else() 0064 message("Unsupported Platform " . ${CMAKE_SYSTEM_NAME}) 0065 endif() 0066 0067 add_executable(isoimagewriter ${isoimagewriter_SRCS}) 0068 0069 target_compile_definitions(isoimagewriter PRIVATE -DPROJECT_VERSION="${PROJECT_VERSION}") 0070 0071 target_link_libraries(isoimagewriter 0072 Qt::Widgets 0073 Qt::Network 0074 Qt::DBus 0075 Qt::Test 0076 KF6::I18n 0077 KF6::CoreAddons 0078 KF6::WidgetsAddons 0079 KF6::IconThemes 0080 KF6::Crash 0081 KF6::Archive 0082 KF6::Solid 0083 ) 0084 if(QGpgme_FOUND) 0085 add_definitions(-D_USE_GPG) 0086 target_link_libraries(isoimagewriter QGpgmeQt6) 0087 endif() 0088 0089 target_link_libraries(isoimagewriter KF6::IconWidgets) 0090 0091 if(CMAKE_SYSTEM_NAME STREQUAL Linux) 0092 target_link_libraries(isoimagewriter KF6::Solid) 0093 target_link_libraries(isoimagewriter Qt::DBus) 0094 endif() 0095 0096 install(TARGETS isoimagewriter ${KDE_INSTALL_TARGETS_DEFAULT_ARGS}) 0097 if(CMAKE_SYSTEM_NAME STREQUAL Linux) 0098 install(PROGRAMS org.kde.isoimagewriter.desktop DESTINATION ${KDE_INSTALL_APPDIR}) 0099 install(FILES org.kde.isoimagewriter.appdata.xml DESTINATION ${KDE_INSTALL_METAINFODIR}) 0100 endif()