From 287a6b7e66538e890046c88e7a55eba950846e47 Mon Sep 17 00:00:00 2001 From: Evan Teran Date: Thu, 28 Mar 2024 15:04:40 -0400 Subject: [PATCH] more cmake modernization where it's obvious --- CMakeLists.txt | 2 +- plugins/Analyzer/CMakeLists.txt | 25 ++++++++------- plugins/Assembler/CMakeLists.txt | 27 +++++++++------- plugins/Backtrace/CMakeLists.txt | 25 ++++++++------- plugins/BinaryInfo/CMakeLists.txt | 25 ++++++++------- plugins/BinarySearcher/CMakeLists.txt | 25 ++++++++------- plugins/Bookmarks/CMakeLists.txt | 25 ++++++++------- plugins/BreakpointManager/CMakeLists.txt | 25 ++++++++------- plugins/CMakeLists.txt | 2 +- plugins/CheckVersion/CMakeLists.txt | 25 ++++++++------- plugins/DebuggerCore/CMakeLists.txt | 35 +++++++++++---------- plugins/DebuggerErrorConsole/CMakeLists.txt | 25 ++++++++------- plugins/DumpState/CMakeLists.txt | 25 ++++++++------- plugins/FasLoader/CMakeLists.txt | 25 ++++++++------- plugins/FunctionFinder/CMakeLists.txt | 25 ++++++++------- plugins/HardwareBreakpoints/CMakeLists.txt | 25 ++++++++------- plugins/HeapAnalyzer/CMakeLists.txt | 25 ++++++++------- plugins/InstructionInspector/CMakeLists.txt | 25 ++++++++------- plugins/ODbgRegisterView/CMakeLists.txt | 31 +++++++++--------- plugins/OpcodeSearcher/CMakeLists.txt | 25 ++++++++------- plugins/ProcessProperties/CMakeLists.txt | 25 ++++++++------- plugins/ROPTool/CMakeLists.txt | 25 ++++++++------- plugins/References/CMakeLists.txt | 25 ++++++++------- plugins/SymbolViewer/CMakeLists.txt | 25 ++++++++------- src/CMakeLists.txt | 2 +- src/test/CMakeLists.txt | 2 +- 26 files changed, 321 insertions(+), 255 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 97e957c5a..0e6324ef6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required (VERSION 3.1) +cmake_minimum_required (VERSION 3.15) project (edb LANGUAGES CXX VERSION 1.5.0) enable_testing() diff --git a/plugins/Analyzer/CMakeLists.txt b/plugins/Analyzer/CMakeLists.txt index f9484cf32..39cfe3324 100644 --- a/plugins/Analyzer/CMakeLists.txt +++ b/plugins/Analyzer/CMakeLists.txt @@ -1,15 +1,15 @@ -cmake_minimum_required (VERSION 3.1) +cmake_minimum_required (VERSION 3.15) include("GNUInstallDirs") set(CMAKE_INCLUDE_CURRENT_DIR ON) set(CMAKE_AUTOMOC ON) set(CMAKE_AUTOUIC ON) -set(PluginName "Analyzer") +set(PLUGIN_NAME "Analyzer") find_package(Qt5 5.0.0 REQUIRED Widgets) -add_library(${PluginName} SHARED +add_library(${PLUGIN_NAME} SHARED Analyzer.cpp Analyzer.h AnalyzerWidget.cpp @@ -25,14 +25,17 @@ add_library(${PluginName} SHARED SpecifiedFunctions.ui ) -target_link_libraries(${PluginName} Qt5::Widgets edb) +target_link_libraries(${PLUGIN_NAME} Qt5::Widgets edb) -install (TARGETS ${PluginName} DESTINATION ${CMAKE_INSTALL_LIBDIR}/edb) +install (TARGETS ${PLUGIN_NAME} DESTINATION ${CMAKE_INSTALL_LIBDIR}/edb) -target_add_warnings(${PluginName}) +target_add_warnings(${PLUGIN_NAME}) -set_property(TARGET ${PluginName} PROPERTY CXX_EXTENSIONS OFF) -set_property(TARGET ${PluginName} PROPERTY CXX_STANDARD 17) -set_property(TARGET ${PluginName} PROPERTY CXX_STANDARD_REQUIRED ON) -set_property(TARGET ${PluginName} PROPERTY LIBRARY_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}) -set_property(TARGET ${PluginName} PROPERTY RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}) +set_target_properties(${PLUGIN_NAME} + PROPERTIES + CXX_EXTENSIONS OFF + CXX_STANDARD 17 + CXX_STANDARD_REQUIRED ON + LIBRARY_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR} + RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR} +) diff --git a/plugins/Assembler/CMakeLists.txt b/plugins/Assembler/CMakeLists.txt index de8781e86..60d3d7f70 100644 --- a/plugins/Assembler/CMakeLists.txt +++ b/plugins/Assembler/CMakeLists.txt @@ -1,15 +1,15 @@ -cmake_minimum_required (VERSION 3.1) +cmake_minimum_required (VERSION 3.15) include("GNUInstallDirs") set(CMAKE_INCLUDE_CURRENT_DIR ON) set(CMAKE_AUTOMOC ON) set(CMAKE_AUTOUIC ON) -set(PluginName "Assembler") +set(PLUGIN_NAME "Assembler") find_package(Qt5 5.0.0 REQUIRED Widgets Xml XmlPatterns) -qt5_add_resources(QRC_SOURCES +qt5_add_resources(QRC_SOURCES Assembler.qrc ) @@ -17,7 +17,7 @@ foreach(FILE IN LISTS QRC_SOURCES) set_property(SOURCE ${FILE} PROPERTY SKIP_UNITY_BUILD_INCLUSION ON) endforeach() -add_library(${PluginName} SHARED +add_library(${PLUGIN_NAME} SHARED ${QRC_SOURCES} Assembler.cpp Assembler.h @@ -29,14 +29,17 @@ add_library(${PluginName} SHARED OptionsPage.ui ) -target_link_libraries(${PluginName} Qt5::Widgets Qt5::Xml Qt5::XmlPatterns edb) +target_link_libraries(${PLUGIN_NAME} Qt5::Widgets Qt5::Xml Qt5::XmlPatterns edb) -install (TARGETS ${PluginName} DESTINATION ${CMAKE_INSTALL_LIBDIR}/edb) +install (TARGETS ${PLUGIN_NAME} DESTINATION ${CMAKE_INSTALL_LIBDIR}/edb) -target_add_warnings(${PluginName}) +target_add_warnings(${PLUGIN_NAME}) -set_property(TARGET ${PluginName} PROPERTY CXX_EXTENSIONS OFF) -set_property(TARGET ${PluginName} PROPERTY CXX_STANDARD 17) -set_property(TARGET ${PluginName} PROPERTY CXX_STANDARD_REQUIRED ON) -set_property(TARGET ${PluginName} PROPERTY LIBRARY_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}) -set_property(TARGET ${PluginName} PROPERTY RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}) +set_target_properties(${PLUGIN_NAME} + PROPERTIES + CXX_EXTENSIONS OFF + CXX_STANDARD 17 + CXX_STANDARD_REQUIRED ON + LIBRARY_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR} + RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR} +) diff --git a/plugins/Backtrace/CMakeLists.txt b/plugins/Backtrace/CMakeLists.txt index da1ef7bb0..90d71a39a 100644 --- a/plugins/Backtrace/CMakeLists.txt +++ b/plugins/Backtrace/CMakeLists.txt @@ -1,15 +1,15 @@ -cmake_minimum_required (VERSION 3.1) +cmake_minimum_required (VERSION 3.15) include("GNUInstallDirs") set(CMAKE_INCLUDE_CURRENT_DIR ON) set(CMAKE_AUTOMOC ON) set(CMAKE_AUTOUIC ON) -set(PluginName "Backtrace") +set(PLUGIN_NAME "Backtrace") find_package(Qt5 5.0.0 REQUIRED Widgets) -add_library(${PluginName} SHARED +add_library(${PLUGIN_NAME} SHARED Backtrace.cpp Backtrace.h CallStack.cpp @@ -19,14 +19,17 @@ add_library(${PluginName} SHARED DialogBacktrace.ui ) -target_link_libraries(${PluginName} Qt5::Widgets edb) +target_link_libraries(${PLUGIN_NAME} Qt5::Widgets edb) -install (TARGETS ${PluginName} DESTINATION ${CMAKE_INSTALL_LIBDIR}/edb) +install (TARGETS ${PLUGIN_NAME} DESTINATION ${CMAKE_INSTALL_LIBDIR}/edb) -target_add_warnings(${PluginName}) +target_add_warnings(${PLUGIN_NAME}) -set_property(TARGET ${PluginName} PROPERTY CXX_EXTENSIONS OFF) -set_property(TARGET ${PluginName} PROPERTY CXX_STANDARD 17) -set_property(TARGET ${PluginName} PROPERTY CXX_STANDARD_REQUIRED ON) -set_property(TARGET ${PluginName} PROPERTY LIBRARY_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}) -set_property(TARGET ${PluginName} PROPERTY RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}) +set_target_properties(${PLUGIN_NAME} + PROPERTIES + CXX_EXTENSIONS OFF + CXX_STANDARD 17 + CXX_STANDARD_REQUIRED ON + LIBRARY_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR} + RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR} +) diff --git a/plugins/BinaryInfo/CMakeLists.txt b/plugins/BinaryInfo/CMakeLists.txt index 2069e0531..ba3c3d9b0 100644 --- a/plugins/BinaryInfo/CMakeLists.txt +++ b/plugins/BinaryInfo/CMakeLists.txt @@ -1,15 +1,15 @@ -cmake_minimum_required (VERSION 3.1) +cmake_minimum_required (VERSION 3.15) include("GNUInstallDirs") set(CMAKE_INCLUDE_CURRENT_DIR ON) set(CMAKE_AUTOMOC ON) set(CMAKE_AUTOUIC ON) -set(PluginName "BinaryInfo") +set(PLUGIN_NAME "BinaryInfo") find_package(Qt5 5.0.0 REQUIRED Widgets) -add_library(${PluginName} SHARED +add_library(${PLUGIN_NAME} SHARED BinaryInfo.cpp BinaryInfo.h demangle.h @@ -32,15 +32,18 @@ add_library(${PluginName} SHARED symbols.h ) -target_link_libraries(${PluginName} Qt5::Widgets PE ELF edb) +target_link_libraries(${PLUGIN_NAME} Qt5::Widgets PE ELF edb) -install (TARGETS ${PluginName} DESTINATION ${CMAKE_INSTALL_LIBDIR}/edb) +install (TARGETS ${PLUGIN_NAME} DESTINATION ${CMAKE_INSTALL_LIBDIR}/edb) -target_add_warnings(${PluginName}) +target_add_warnings(${PLUGIN_NAME}) -set_property(TARGET ${PluginName} PROPERTY CXX_EXTENSIONS OFF) -set_property(TARGET ${PluginName} PROPERTY CXX_STANDARD 17) -set_property(TARGET ${PluginName} PROPERTY CXX_STANDARD_REQUIRED ON) -set_property(TARGET ${PluginName} PROPERTY LIBRARY_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}) -set_property(TARGET ${PluginName} PROPERTY RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}) +set_target_properties(${PLUGIN_NAME} + PROPERTIES + CXX_EXTENSIONS OFF + CXX_STANDARD 17 + CXX_STANDARD_REQUIRED ON + LIBRARY_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR} + RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR} +) diff --git a/plugins/BinarySearcher/CMakeLists.txt b/plugins/BinarySearcher/CMakeLists.txt index dfb255fa4..e22a7ca3b 100644 --- a/plugins/BinarySearcher/CMakeLists.txt +++ b/plugins/BinarySearcher/CMakeLists.txt @@ -1,15 +1,15 @@ -cmake_minimum_required (VERSION 3.1) +cmake_minimum_required (VERSION 3.15) include("GNUInstallDirs") set(CMAKE_INCLUDE_CURRENT_DIR ON) set(CMAKE_AUTOMOC ON) set(CMAKE_AUTOUIC ON) -set(PluginName "BinarySearcher") +set(PLUGIN_NAME "BinarySearcher") find_package(Qt5 5.0.0 REQUIRED Widgets) -add_library(${PluginName} SHARED +add_library(${PLUGIN_NAME} SHARED BinarySearcher.cpp BinarySearcher.h DialogAsciiString.cpp @@ -23,15 +23,18 @@ add_library(${PluginName} SHARED DialogResults.ui ) -target_link_libraries(${PluginName} Qt5::Widgets edb) +target_link_libraries(${PLUGIN_NAME} Qt5::Widgets edb) -install (TARGETS ${PluginName} DESTINATION ${CMAKE_INSTALL_LIBDIR}/edb) +install (TARGETS ${PLUGIN_NAME} DESTINATION ${CMAKE_INSTALL_LIBDIR}/edb) -target_add_warnings(${PluginName}) +target_add_warnings(${PLUGIN_NAME}) -set_property(TARGET ${PluginName} PROPERTY CXX_EXTENSIONS OFF) -set_property(TARGET ${PluginName} PROPERTY CXX_STANDARD 17) -set_property(TARGET ${PluginName} PROPERTY CXX_STANDARD_REQUIRED ON) -set_property(TARGET ${PluginName} PROPERTY LIBRARY_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}) -set_property(TARGET ${PluginName} PROPERTY RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}) +set_target_properties(${PLUGIN_NAME} + PROPERTIES + CXX_EXTENSIONS OFF + CXX_STANDARD 17 + CXX_STANDARD_REQUIRED ON + LIBRARY_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR} + RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR} +) diff --git a/plugins/Bookmarks/CMakeLists.txt b/plugins/Bookmarks/CMakeLists.txt index 946ff3d81..d6720a149 100644 --- a/plugins/Bookmarks/CMakeLists.txt +++ b/plugins/Bookmarks/CMakeLists.txt @@ -1,15 +1,15 @@ -cmake_minimum_required (VERSION 3.1) +cmake_minimum_required (VERSION 3.15) include("GNUInstallDirs") set(CMAKE_INCLUDE_CURRENT_DIR ON) set(CMAKE_AUTOMOC ON) set(CMAKE_AUTOUIC ON) -set(PluginName "Bookmarks") +set(PLUGIN_NAME "Bookmarks") find_package(Qt5 5.0.0 REQUIRED Widgets) -add_library(${PluginName} SHARED +add_library(${PLUGIN_NAME} SHARED Bookmarks.cpp Bookmarks.h BookmarkWidget.cpp @@ -19,14 +19,17 @@ add_library(${PluginName} SHARED BookmarkWidget.ui ) -target_link_libraries(${PluginName} Qt5::Widgets edb) +target_link_libraries(${PLUGIN_NAME} Qt5::Widgets edb) -install (TARGETS ${PluginName} DESTINATION ${CMAKE_INSTALL_LIBDIR}/edb) +install (TARGETS ${PLUGIN_NAME} DESTINATION ${CMAKE_INSTALL_LIBDIR}/edb) -target_add_warnings(${PluginName}) +target_add_warnings(${PLUGIN_NAME}) -set_property(TARGET ${PluginName} PROPERTY CXX_EXTENSIONS OFF) -set_property(TARGET ${PluginName} PROPERTY CXX_STANDARD 17) -set_property(TARGET ${PluginName} PROPERTY CXX_STANDARD_REQUIRED ON) -set_property(TARGET ${PluginName} PROPERTY LIBRARY_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}) -set_property(TARGET ${PluginName} PROPERTY RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}) +set_target_properties(${PLUGIN_NAME} + PROPERTIES + CXX_EXTENSIONS OFF + CXX_STANDARD 17 + CXX_STANDARD_REQUIRED ON + LIBRARY_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR} + RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR} +) diff --git a/plugins/BreakpointManager/CMakeLists.txt b/plugins/BreakpointManager/CMakeLists.txt index cddedd0d3..b16ab0388 100644 --- a/plugins/BreakpointManager/CMakeLists.txt +++ b/plugins/BreakpointManager/CMakeLists.txt @@ -1,27 +1,30 @@ -cmake_minimum_required (VERSION 3.1) +cmake_minimum_required (VERSION 3.15) include("GNUInstallDirs") set(CMAKE_INCLUDE_CURRENT_DIR ON) set(CMAKE_AUTOMOC ON) set(CMAKE_AUTOUIC ON) -set(PluginName "BreakpointManager") +set(PLUGIN_NAME "BreakpointManager") find_package(Qt5 5.0.0 REQUIRED Widgets) -add_library(${PluginName} SHARED +add_library(${PLUGIN_NAME} SHARED BreakpointManager.cpp BreakpointManager.h ) -target_link_libraries(${PluginName} Qt5::Widgets edb) +target_link_libraries(${PLUGIN_NAME} Qt5::Widgets edb) -install (TARGETS ${PluginName} DESTINATION ${CMAKE_INSTALL_LIBDIR}/edb) +install (TARGETS ${PLUGIN_NAME} DESTINATION ${CMAKE_INSTALL_LIBDIR}/edb) -target_add_warnings(${PluginName}) +target_add_warnings(${PLUGIN_NAME}) -set_property(TARGET ${PluginName} PROPERTY CXX_EXTENSIONS OFF) -set_property(TARGET ${PluginName} PROPERTY CXX_STANDARD 17) -set_property(TARGET ${PluginName} PROPERTY CXX_STANDARD_REQUIRED ON) -set_property(TARGET ${PluginName} PROPERTY LIBRARY_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}) -set_property(TARGET ${PluginName} PROPERTY RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}) +set_target_properties(${PLUGIN_NAME} + PROPERTIES + CXX_EXTENSIONS OFF + CXX_STANDARD 17 + CXX_STANDARD_REQUIRED ON + LIBRARY_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR} + RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR} +) diff --git a/plugins/CMakeLists.txt b/plugins/CMakeLists.txt index a00f5618e..44ca566c2 100644 --- a/plugins/CMakeLists.txt +++ b/plugins/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required (VERSION 3.1) +cmake_minimum_required (VERSION 3.15) add_definitions(-DQT_PLUGIN) diff --git a/plugins/CheckVersion/CMakeLists.txt b/plugins/CheckVersion/CMakeLists.txt index cc94d3fdb..f8f94e92b 100644 --- a/plugins/CheckVersion/CMakeLists.txt +++ b/plugins/CheckVersion/CMakeLists.txt @@ -1,15 +1,15 @@ -cmake_minimum_required (VERSION 3.1) +cmake_minimum_required (VERSION 3.15) include("GNUInstallDirs") set(CMAKE_INCLUDE_CURRENT_DIR ON) set(CMAKE_AUTOMOC ON) set(CMAKE_AUTOUIC ON) -set(PluginName "CheckVersion") +set(PLUGIN_NAME "CheckVersion") find_package(Qt5 5.0.0 REQUIRED Widgets Network) -add_library(${PluginName} SHARED +add_library(${PLUGIN_NAME} SHARED CheckVersion.cpp CheckVersion.h OptionsPage.cpp @@ -17,14 +17,17 @@ add_library(${PluginName} SHARED OptionsPage.ui ) -target_link_libraries(${PluginName} Qt5::Widgets Qt5::Network edb) +target_link_libraries(${PLUGIN_NAME} Qt5::Widgets Qt5::Network edb) -install (TARGETS ${PluginName} DESTINATION ${CMAKE_INSTALL_LIBDIR}/edb) +install (TARGETS ${PLUGIN_NAME} DESTINATION ${CMAKE_INSTALL_LIBDIR}/edb) -target_add_warnings(${PluginName}) +target_add_warnings(${PLUGIN_NAME}) -set_property(TARGET ${PluginName} PROPERTY CXX_EXTENSIONS OFF) -set_property(TARGET ${PluginName} PROPERTY CXX_STANDARD 17) -set_property(TARGET ${PluginName} PROPERTY CXX_STANDARD_REQUIRED ON) -set_property(TARGET ${PluginName} PROPERTY LIBRARY_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}) -set_property(TARGET ${PluginName} PROPERTY RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}) +set_target_properties(${PLUGIN_NAME} + PROPERTIES + CXX_EXTENSIONS OFF + CXX_STANDARD 17 + CXX_STANDARD_REQUIRED ON + LIBRARY_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR} + RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR} +) diff --git a/plugins/DebuggerCore/CMakeLists.txt b/plugins/DebuggerCore/CMakeLists.txt index 3f4673f59..0ad2c714f 100644 --- a/plugins/DebuggerCore/CMakeLists.txt +++ b/plugins/DebuggerCore/CMakeLists.txt @@ -1,11 +1,11 @@ -cmake_minimum_required (VERSION 3.1) +cmake_minimum_required (VERSION 3.15) include("GNUInstallDirs") set(CMAKE_INCLUDE_CURRENT_DIR ON) set(CMAKE_AUTOMOC ON) set(CMAKE_AUTOUIC ON) -set(PluginName "DebuggerCore") +set(PLUGIN_NAME "DebuggerCore") find_package(Qt5 5.0.0 REQUIRED Widgets) @@ -53,7 +53,7 @@ elseif(TARGET_PLATFORM_WINDOWS) ${PLUGIN_INCLUDES} win32 ) - + set(DebuggerCore_SRCS ${DebuggerCore_SRCS} win32/DebuggerCore.cpp @@ -99,14 +99,14 @@ if(TARGET_ARCH_FAMILY_X86) ${PLUGIN_INCLUDES} arch/x86-generic ) - + set(DebuggerCore_SRCS ${DebuggerCore_SRCS} arch/x86-generic/Breakpoint.cpp arch/x86-generic/Breakpoint.h ) - if(TARGET_PLATFORM_LINUX) + if(TARGET_PLATFORM_LINUX) set(PLUGIN_INCLUDES ${PLUGIN_INCLUDES} unix/linux/arch/x86-generic @@ -136,7 +136,7 @@ if(TARGET_ARCH_FAMILY_ARM) ) if(TARGET_PLATFORM_LINUX) - + set(PLUGIN_INCLUDES ${PLUGIN_INCLUDES} unix/linux/arch/arm-generic @@ -152,21 +152,24 @@ if(TARGET_ARCH_FAMILY_ARM) endif() -add_library(${PluginName} SHARED ${DebuggerCore_SRCS} ) +add_library(${PLUGIN_NAME} SHARED ${DebuggerCore_SRCS} ) -target_include_directories(${PluginName} PRIVATE +target_include_directories(${PLUGIN_NAME} PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} ${PLUGIN_INCLUDES} ) -target_link_libraries(${PluginName} Qt5::Widgets PE ELF edb) +target_link_libraries(${PLUGIN_NAME} Qt5::Widgets PE ELF edb) -install (TARGETS ${PluginName} DESTINATION ${CMAKE_INSTALL_LIBDIR}/edb) +install (TARGETS ${PLUGIN_NAME} DESTINATION ${CMAKE_INSTALL_LIBDIR}/edb) -target_add_warnings(${PluginName}) +target_add_warnings(${PLUGIN_NAME}) -set_property(TARGET ${PluginName} PROPERTY CXX_EXTENSIONS OFF) -set_property(TARGET ${PluginName} PROPERTY CXX_STANDARD 17) -set_property(TARGET ${PluginName} PROPERTY CXX_STANDARD_REQUIRED ON) -set_property(TARGET ${PluginName} PROPERTY LIBRARY_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}) -set_property(TARGET ${PluginName} PROPERTY RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}) +set_target_properties(${PLUGIN_NAME} + PROPERTIES + CXX_EXTENSIONS OFF + CXX_STANDARD 17 + CXX_STANDARD_REQUIRED ON + LIBRARY_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR} + RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR} +) diff --git a/plugins/DebuggerErrorConsole/CMakeLists.txt b/plugins/DebuggerErrorConsole/CMakeLists.txt index 38d6293b1..c70479adb 100644 --- a/plugins/DebuggerErrorConsole/CMakeLists.txt +++ b/plugins/DebuggerErrorConsole/CMakeLists.txt @@ -1,27 +1,30 @@ -cmake_minimum_required (VERSION 3.1) +cmake_minimum_required (VERSION 3.15) include("GNUInstallDirs") set(CMAKE_INCLUDE_CURRENT_DIR ON) set(CMAKE_AUTOMOC ON) set(CMAKE_AUTOUIC ON) -set(PluginName "DebuggerErrorConsole") +set(PLUGIN_NAME "DebuggerErrorConsole") find_package(Qt5 5.0.0 REQUIRED Widgets) -add_library(${PluginName} SHARED +add_library(${PLUGIN_NAME} SHARED Plugin.cpp Plugin.h ) -target_link_libraries(${PluginName} Qt5::Widgets edb) +target_link_libraries(${PLUGIN_NAME} Qt5::Widgets edb) -install (TARGETS ${PluginName} DESTINATION ${CMAKE_INSTALL_LIBDIR}/edb) +install (TARGETS ${PLUGIN_NAME} DESTINATION ${CMAKE_INSTALL_LIBDIR}/edb) -target_add_warnings(${PluginName}) +target_add_warnings(${PLUGIN_NAME}) -set_property(TARGET ${PluginName} PROPERTY CXX_EXTENSIONS OFF) -set_property(TARGET ${PluginName} PROPERTY CXX_STANDARD 17) -set_property(TARGET ${PluginName} PROPERTY CXX_STANDARD_REQUIRED ON) -set_property(TARGET ${PluginName} PROPERTY LIBRARY_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}) -set_property(TARGET ${PluginName} PROPERTY RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}) +set_target_properties(${PLUGIN_NAME} + PROPERTIES + CXX_EXTENSIONS OFF + CXX_STANDARD 17 + CXX_STANDARD_REQUIRED ON + LIBRARY_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR} + RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR} +) diff --git a/plugins/DumpState/CMakeLists.txt b/plugins/DumpState/CMakeLists.txt index 2ebfdbcaa..07c0fe8e6 100644 --- a/plugins/DumpState/CMakeLists.txt +++ b/plugins/DumpState/CMakeLists.txt @@ -1,15 +1,15 @@ -cmake_minimum_required (VERSION 3.1) +cmake_minimum_required (VERSION 3.15) include("GNUInstallDirs") set(CMAKE_INCLUDE_CURRENT_DIR ON) set(CMAKE_AUTOMOC ON) set(CMAKE_AUTOUIC ON) -set(PluginName "DumpState") +set(PLUGIN_NAME "DumpState") find_package(Qt5 5.0.0 REQUIRED Widgets) -add_library(${PluginName} SHARED +add_library(${PLUGIN_NAME} SHARED DumpState.cpp DumpState.h OptionsPage.cpp @@ -17,14 +17,17 @@ add_library(${PluginName} SHARED OptionsPage.ui ) -target_link_libraries(${PluginName} Qt5::Widgets edb) +target_link_libraries(${PLUGIN_NAME} Qt5::Widgets edb) -install (TARGETS ${PluginName} DESTINATION ${CMAKE_INSTALL_LIBDIR}/edb) +install (TARGETS ${PLUGIN_NAME} DESTINATION ${CMAKE_INSTALL_LIBDIR}/edb) -target_add_warnings(${PluginName}) +target_add_warnings(${PLUGIN_NAME}) -set_property(TARGET ${PluginName} PROPERTY CXX_EXTENSIONS OFF) -set_property(TARGET ${PluginName} PROPERTY CXX_STANDARD 17) -set_property(TARGET ${PluginName} PROPERTY CXX_STANDARD_REQUIRED ON) -set_property(TARGET ${PluginName} PROPERTY LIBRARY_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}) -set_property(TARGET ${PluginName} PROPERTY RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}) +set_target_properties(${PLUGIN_NAME} + PROPERTIES + CXX_EXTENSIONS OFF + CXX_STANDARD 17 + CXX_STANDARD_REQUIRED ON + LIBRARY_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR} + RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR} +) diff --git a/plugins/FasLoader/CMakeLists.txt b/plugins/FasLoader/CMakeLists.txt index 6ddd387f3..eb962782d 100644 --- a/plugins/FasLoader/CMakeLists.txt +++ b/plugins/FasLoader/CMakeLists.txt @@ -1,15 +1,15 @@ -cmake_minimum_required (VERSION 3.1) +cmake_minimum_required (VERSION 3.15) include("GNUInstallDirs") set(CMAKE_INCLUDE_CURRENT_DIR ON) set(CMAKE_AUTOMOC ON) set(CMAKE_AUTOUIC ON) -set(PluginName "FasLoader") +set(PLUGIN_NAME "FasLoader") find_package(Qt5 5.0.0 REQUIRED Widgets) -add_library(${PluginName} SHARED +add_library(${PLUGIN_NAME} SHARED FasLoader.cpp FasLoader.hpp @@ -22,14 +22,17 @@ add_library(${PluginName} SHARED Fas/Symbol.hpp ) -target_link_libraries(${PluginName} Qt5::Widgets edb) +target_link_libraries(${PLUGIN_NAME} Qt5::Widgets edb) -install (TARGETS ${PluginName} DESTINATION ${CMAKE_INSTALL_LIBDIR}/edb) +install (TARGETS ${PLUGIN_NAME} DESTINATION ${CMAKE_INSTALL_LIBDIR}/edb) -target_add_warnings(${PluginName}) +target_add_warnings(${PLUGIN_NAME}) -set_property(TARGET ${PluginName} PROPERTY CXX_EXTENSIONS OFF) -set_property(TARGET ${PluginName} PROPERTY CXX_STANDARD 17) -set_property(TARGET ${PluginName} PROPERTY CXX_STANDARD_REQUIRED ON) -set_property(TARGET ${PluginName} PROPERTY LIBRARY_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}) -set_property(TARGET ${PluginName} PROPERTY RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}) +set_target_properties(${PLUGIN_NAME} + PROPERTIES + CXX_EXTENSIONS OFF + CXX_STANDARD 17 + CXX_STANDARD_REQUIRED ON + LIBRARY_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR} + RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR} +) diff --git a/plugins/FunctionFinder/CMakeLists.txt b/plugins/FunctionFinder/CMakeLists.txt index f70e9397a..60dd10efc 100644 --- a/plugins/FunctionFinder/CMakeLists.txt +++ b/plugins/FunctionFinder/CMakeLists.txt @@ -1,15 +1,15 @@ -cmake_minimum_required (VERSION 3.1) +cmake_minimum_required (VERSION 3.15) include("GNUInstallDirs") set(CMAKE_INCLUDE_CURRENT_DIR ON) set(CMAKE_AUTOMOC ON) set(CMAKE_AUTOUIC ON) -set(PluginName "FunctionFinder") +set(PLUGIN_NAME "FunctionFinder") find_package(Qt5 5.0.0 REQUIRED Widgets) -add_library(${PluginName} SHARED +add_library(${PLUGIN_NAME} SHARED DialogFunctions.cpp DialogFunctions.h DialogFunctions.ui @@ -22,14 +22,17 @@ add_library(${PluginName} SHARED ResultsModel.cpp ) -target_link_libraries(${PluginName} Qt5::Widgets edb) +target_link_libraries(${PLUGIN_NAME} Qt5::Widgets edb) -install (TARGETS ${PluginName} DESTINATION ${CMAKE_INSTALL_LIBDIR}/edb) +install (TARGETS ${PLUGIN_NAME} DESTINATION ${CMAKE_INSTALL_LIBDIR}/edb) -target_add_warnings(${PluginName}) +target_add_warnings(${PLUGIN_NAME}) -set_property(TARGET ${PluginName} PROPERTY CXX_EXTENSIONS OFF) -set_property(TARGET ${PluginName} PROPERTY CXX_STANDARD 17) -set_property(TARGET ${PluginName} PROPERTY CXX_STANDARD_REQUIRED ON) -set_property(TARGET ${PluginName} PROPERTY LIBRARY_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}) -set_property(TARGET ${PluginName} PROPERTY RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}) +set_target_properties(${PLUGIN_NAME} + PROPERTIES + CXX_EXTENSIONS OFF + CXX_STANDARD 17 + CXX_STANDARD_REQUIRED ON + LIBRARY_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR} + RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR} +) diff --git a/plugins/HardwareBreakpoints/CMakeLists.txt b/plugins/HardwareBreakpoints/CMakeLists.txt index f1a5d8a6c..8672b5f9b 100644 --- a/plugins/HardwareBreakpoints/CMakeLists.txt +++ b/plugins/HardwareBreakpoints/CMakeLists.txt @@ -1,15 +1,15 @@ -cmake_minimum_required (VERSION 3.1) +cmake_minimum_required (VERSION 3.15) include("GNUInstallDirs") set(CMAKE_INCLUDE_CURRENT_DIR ON) set(CMAKE_AUTOMOC ON) set(CMAKE_AUTOUIC ON) -set(PluginName "HardwareBreakpoints") +set(PLUGIN_NAME "HardwareBreakpoints") find_package(Qt5 5.0.0 REQUIRED Widgets) -add_library(${PluginName} SHARED +add_library(${PLUGIN_NAME} SHARED DialogHwBreakpoints.cpp DialogHwBreakpoints.h DialogHwBreakpoints.ui @@ -19,14 +19,17 @@ add_library(${PluginName} SHARED libHardwareBreakpoints.h ) -target_link_libraries(${PluginName} Qt5::Widgets edb) +target_link_libraries(${PLUGIN_NAME} Qt5::Widgets edb) -install (TARGETS ${PluginName} DESTINATION ${CMAKE_INSTALL_LIBDIR}/edb) +install (TARGETS ${PLUGIN_NAME} DESTINATION ${CMAKE_INSTALL_LIBDIR}/edb) -target_add_warnings(${PluginName}) +target_add_warnings(${PLUGIN_NAME}) -set_property(TARGET ${PluginName} PROPERTY CXX_EXTENSIONS OFF) -set_property(TARGET ${PluginName} PROPERTY CXX_STANDARD 17) -set_property(TARGET ${PluginName} PROPERTY CXX_STANDARD_REQUIRED ON) -set_property(TARGET ${PluginName} PROPERTY LIBRARY_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}) -set_property(TARGET ${PluginName} PROPERTY RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}) +set_target_properties(${PLUGIN_NAME} + PROPERTIES + CXX_EXTENSIONS OFF + CXX_STANDARD 17 + CXX_STANDARD_REQUIRED ON + LIBRARY_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR} + RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR} +) diff --git a/plugins/HeapAnalyzer/CMakeLists.txt b/plugins/HeapAnalyzer/CMakeLists.txt index 85f4e2193..2cc9b6428 100644 --- a/plugins/HeapAnalyzer/CMakeLists.txt +++ b/plugins/HeapAnalyzer/CMakeLists.txt @@ -1,15 +1,15 @@ -cmake_minimum_required (VERSION 3.1) +cmake_minimum_required (VERSION 3.15) include("GNUInstallDirs") set(CMAKE_INCLUDE_CURRENT_DIR ON) set(CMAKE_AUTOMOC ON) set(CMAKE_AUTOUIC ON) -set(PluginName "HeapAnalyzer") +set(PLUGIN_NAME "HeapAnalyzer") find_package(Qt5 5.0.0 REQUIRED Widgets Concurrent) -add_library(${PluginName} SHARED +add_library(${PLUGIN_NAME} SHARED DialogHeap.cpp DialogHeap.h DialogHeap.ui @@ -19,14 +19,17 @@ add_library(${PluginName} SHARED ResultViewModel.h ) -target_link_libraries(${PluginName} Qt5::Widgets Qt5::Concurrent edb) +target_link_libraries(${PLUGIN_NAME} Qt5::Widgets Qt5::Concurrent edb) -install (TARGETS ${PluginName} DESTINATION ${CMAKE_INSTALL_LIBDIR}/edb) +install (TARGETS ${PLUGIN_NAME} DESTINATION ${CMAKE_INSTALL_LIBDIR}/edb) -target_add_warnings(${PluginName}) +target_add_warnings(${PLUGIN_NAME}) -set_property(TARGET ${PluginName} PROPERTY CXX_EXTENSIONS OFF) -set_property(TARGET ${PluginName} PROPERTY CXX_STANDARD 17) -set_property(TARGET ${PluginName} PROPERTY CXX_STANDARD_REQUIRED ON) -set_property(TARGET ${PluginName} PROPERTY LIBRARY_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}) -set_property(TARGET ${PluginName} PROPERTY RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}) +set_target_properties(${PLUGIN_NAME} + PROPERTIES + CXX_EXTENSIONS OFF + CXX_STANDARD 17 + CXX_STANDARD_REQUIRED ON + LIBRARY_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR} + RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR} +) diff --git a/plugins/InstructionInspector/CMakeLists.txt b/plugins/InstructionInspector/CMakeLists.txt index 810f31536..2346cf30d 100644 --- a/plugins/InstructionInspector/CMakeLists.txt +++ b/plugins/InstructionInspector/CMakeLists.txt @@ -1,27 +1,30 @@ -cmake_minimum_required (VERSION 3.1) +cmake_minimum_required (VERSION 3.15) include("GNUInstallDirs") set(CMAKE_INCLUDE_CURRENT_DIR ON) set(CMAKE_AUTOMOC ON) set(CMAKE_AUTOUIC ON) -set(PluginName "InstructionInspector") +set(PLUGIN_NAME "InstructionInspector") find_package(Qt5 5.0.0 REQUIRED Widgets) -add_library(${PluginName} SHARED +add_library(${PLUGIN_NAME} SHARED Plugin.cpp Plugin.h ) -target_link_libraries(${PluginName} Qt5::Widgets edb) +target_link_libraries(${PLUGIN_NAME} Qt5::Widgets edb) -install (TARGETS ${PluginName} DESTINATION ${CMAKE_INSTALL_LIBDIR}/edb) +install (TARGETS ${PLUGIN_NAME} DESTINATION ${CMAKE_INSTALL_LIBDIR}/edb) -target_add_warnings(${PluginName}) +target_add_warnings(${PLUGIN_NAME}) -set_property(TARGET ${PluginName} PROPERTY CXX_EXTENSIONS OFF) -set_property(TARGET ${PluginName} PROPERTY CXX_STANDARD 17) -set_property(TARGET ${PluginName} PROPERTY CXX_STANDARD_REQUIRED ON) -set_property(TARGET ${PluginName} PROPERTY LIBRARY_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}) -set_property(TARGET ${PluginName} PROPERTY RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}) +set_target_properties(${PLUGIN_NAME} + PROPERTIES + CXX_EXTENSIONS OFF + CXX_STANDARD 17 + CXX_STANDARD_REQUIRED ON + LIBRARY_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR} + RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR} +) diff --git a/plugins/ODbgRegisterView/CMakeLists.txt b/plugins/ODbgRegisterView/CMakeLists.txt index 719db08f1..58470b41b 100644 --- a/plugins/ODbgRegisterView/CMakeLists.txt +++ b/plugins/ODbgRegisterView/CMakeLists.txt @@ -1,11 +1,11 @@ -cmake_minimum_required (VERSION 3.1) +cmake_minimum_required (VERSION 3.15) include("GNUInstallDirs") set(CMAKE_INCLUDE_CURRENT_DIR ON) set(CMAKE_AUTOMOC ON) set(CMAKE_AUTOUIC ON) -set(PluginName "ODbgRegisterView") +set(PLUGIN_NAME "ODbgRegisterView") find_package(Qt5 5.0.0 REQUIRED Widgets) @@ -32,7 +32,7 @@ set(PluginSources NumberEdit.cpp NumberEdit.h ODbgRV_Common.h - ODbgRV_Util.h + ODbgRV_Util.h Plugin.cpp Plugin.h RegisterGroup.cpp @@ -52,7 +52,7 @@ if(TARGET_ARCH_FAMILY_X86) set(PLUGIN_INCLUDES arch/x86-generic ) - + set(PluginSources ${PluginSources} arch/x86-generic/x86Groups.cpp @@ -77,21 +77,24 @@ elseif(TARGET_ARCH_FAMILY_ARM) ) endif() -add_library(${PluginName} SHARED ${PluginSources}) +add_library(${PLUGIN_NAME} SHARED ${PluginSources}) -target_include_directories(${PluginName} PRIVATE +target_include_directories(${PLUGIN_NAME} PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} ${PLUGIN_INCLUDES} ) -target_link_libraries(${PluginName} Qt5::Widgets edb) +target_link_libraries(${PLUGIN_NAME} Qt5::Widgets edb) -install (TARGETS ${PluginName} DESTINATION ${CMAKE_INSTALL_LIBDIR}/edb) +install (TARGETS ${PLUGIN_NAME} DESTINATION ${CMAKE_INSTALL_LIBDIR}/edb) -target_add_warnings(${PluginName}) +target_add_warnings(${PLUGIN_NAME}) -set_property(TARGET ${PluginName} PROPERTY CXX_EXTENSIONS OFF) -set_property(TARGET ${PluginName} PROPERTY CXX_STANDARD 17) -set_property(TARGET ${PluginName} PROPERTY CXX_STANDARD_REQUIRED ON) -set_property(TARGET ${PluginName} PROPERTY LIBRARY_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}) -set_property(TARGET ${PluginName} PROPERTY RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}) +set_target_properties(${PLUGIN_NAME} + PROPERTIES + CXX_EXTENSIONS OFF + CXX_STANDARD 17 + CXX_STANDARD_REQUIRED ON + LIBRARY_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR} + RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR} +) diff --git a/plugins/OpcodeSearcher/CMakeLists.txt b/plugins/OpcodeSearcher/CMakeLists.txt index 0298beafc..9650daa2c 100644 --- a/plugins/OpcodeSearcher/CMakeLists.txt +++ b/plugins/OpcodeSearcher/CMakeLists.txt @@ -1,15 +1,15 @@ -cmake_minimum_required (VERSION 3.1) +cmake_minimum_required (VERSION 3.15) include("GNUInstallDirs") set(CMAKE_INCLUDE_CURRENT_DIR ON) set(CMAKE_AUTOMOC ON) set(CMAKE_AUTOUIC ON) -set(PluginName "OpcodeSearcher") +set(PLUGIN_NAME "OpcodeSearcher") find_package(Qt5 5.0.0 REQUIRED Widgets) -add_library(${PluginName} SHARED +add_library(${PLUGIN_NAME} SHARED DialogOpcodes.cpp DialogOpcodes.h DialogOpcodes.ui @@ -22,14 +22,17 @@ add_library(${PluginName} SHARED ResultsModel.h ) -target_link_libraries(${PluginName} Qt5::Widgets edb) +target_link_libraries(${PLUGIN_NAME} Qt5::Widgets edb) -install (TARGETS ${PluginName} DESTINATION ${CMAKE_INSTALL_LIBDIR}/edb) +install (TARGETS ${PLUGIN_NAME} DESTINATION ${CMAKE_INSTALL_LIBDIR}/edb) -target_add_warnings(${PluginName}) +target_add_warnings(${PLUGIN_NAME}) -set_property(TARGET ${PluginName} PROPERTY CXX_EXTENSIONS OFF) -set_property(TARGET ${PluginName} PROPERTY CXX_STANDARD 17) -set_property(TARGET ${PluginName} PROPERTY CXX_STANDARD_REQUIRED ON) -set_property(TARGET ${PluginName} PROPERTY LIBRARY_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}) -set_property(TARGET ${PluginName} PROPERTY RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}) +set_target_properties(${PLUGIN_NAME} + PROPERTIES + CXX_EXTENSIONS OFF + CXX_STANDARD 17 + CXX_STANDARD_REQUIRED ON + LIBRARY_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR} + RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR} +) diff --git a/plugins/ProcessProperties/CMakeLists.txt b/plugins/ProcessProperties/CMakeLists.txt index 609d23c37..6784fa122 100644 --- a/plugins/ProcessProperties/CMakeLists.txt +++ b/plugins/ProcessProperties/CMakeLists.txt @@ -1,15 +1,15 @@ -cmake_minimum_required (VERSION 3.1) +cmake_minimum_required (VERSION 3.15) include("GNUInstallDirs") set(CMAKE_INCLUDE_CURRENT_DIR ON) set(CMAKE_AUTOMOC ON) set(CMAKE_AUTOUIC ON) -set(PluginName "ProcessProperties") +set(PLUGIN_NAME "ProcessProperties") find_package(Qt5 5.0.0 REQUIRED Widgets Network) -add_library(${PluginName} SHARED +add_library(${PLUGIN_NAME} SHARED DialogProcessProperties.cpp DialogProcessProperties.h DialogProcessProperties.ui @@ -25,14 +25,17 @@ add_library(${PluginName} SHARED ResultsModel.h ) -target_link_libraries(${PluginName} Qt5::Widgets Qt5::Network edb) +target_link_libraries(${PLUGIN_NAME} Qt5::Widgets Qt5::Network edb) -install (TARGETS ${PluginName} DESTINATION ${CMAKE_INSTALL_LIBDIR}/edb) +install (TARGETS ${PLUGIN_NAME} DESTINATION ${CMAKE_INSTALL_LIBDIR}/edb) -target_add_warnings(${PluginName}) +target_add_warnings(${PLUGIN_NAME}) -set_property(TARGET ${PluginName} PROPERTY CXX_EXTENSIONS OFF) -set_property(TARGET ${PluginName} PROPERTY CXX_STANDARD 17) -set_property(TARGET ${PluginName} PROPERTY CXX_STANDARD_REQUIRED ON) -set_property(TARGET ${PluginName} PROPERTY LIBRARY_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}) -set_property(TARGET ${PluginName} PROPERTY RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}) +set_target_properties(${PLUGIN_NAME} + PROPERTIES + CXX_EXTENSIONS OFF + CXX_STANDARD 17 + CXX_STANDARD_REQUIRED ON + LIBRARY_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR} + RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR} +) diff --git a/plugins/ROPTool/CMakeLists.txt b/plugins/ROPTool/CMakeLists.txt index 8839ba894..4388c3d25 100644 --- a/plugins/ROPTool/CMakeLists.txt +++ b/plugins/ROPTool/CMakeLists.txt @@ -1,15 +1,15 @@ -cmake_minimum_required (VERSION 3.1) +cmake_minimum_required (VERSION 3.15) include("GNUInstallDirs") set(CMAKE_INCLUDE_CURRENT_DIR ON) set(CMAKE_AUTOMOC ON) set(CMAKE_AUTOUIC ON) -set(PluginName "ROPTool") +set(PLUGIN_NAME "ROPTool") find_package(Qt5 5.0.0 REQUIRED Widgets) -add_library(${PluginName} SHARED +add_library(${PLUGIN_NAME} SHARED DialogROPTool.cpp DialogROPTool.h DialogROPTool.ui @@ -22,14 +22,17 @@ add_library(${PluginName} SHARED ResultsModel.h ) -target_link_libraries(${PluginName} Qt5::Widgets edb) +target_link_libraries(${PLUGIN_NAME} Qt5::Widgets edb) -install (TARGETS ${PluginName} DESTINATION ${CMAKE_INSTALL_LIBDIR}/edb) +install (TARGETS ${PLUGIN_NAME} DESTINATION ${CMAKE_INSTALL_LIBDIR}/edb) -target_add_warnings(${PluginName}) +target_add_warnings(${PLUGIN_NAME}) -set_property(TARGET ${PluginName} PROPERTY CXX_EXTENSIONS OFF) -set_property(TARGET ${PluginName} PROPERTY CXX_STANDARD 17) -set_property(TARGET ${PluginName} PROPERTY CXX_STANDARD_REQUIRED ON) -set_property(TARGET ${PluginName} PROPERTY LIBRARY_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}) -set_property(TARGET ${PluginName} PROPERTY RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}) +set_target_properties(${PLUGIN_NAME} + PROPERTIES + CXX_EXTENSIONS OFF + CXX_STANDARD 17 + CXX_STANDARD_REQUIRED ON + LIBRARY_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR} + RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR} +) diff --git a/plugins/References/CMakeLists.txt b/plugins/References/CMakeLists.txt index c1fbaf824..ba5ebca04 100644 --- a/plugins/References/CMakeLists.txt +++ b/plugins/References/CMakeLists.txt @@ -1,15 +1,15 @@ -cmake_minimum_required (VERSION 3.1) +cmake_minimum_required (VERSION 3.15) include("GNUInstallDirs") set(CMAKE_INCLUDE_CURRENT_DIR ON) set(CMAKE_AUTOMOC ON) set(CMAKE_AUTOUIC ON) -set(PluginName "References") +set(PLUGIN_NAME "References") find_package(Qt5 5.0.0 REQUIRED Widgets) -add_library(${PluginName} SHARED +add_library(${PLUGIN_NAME} SHARED DialogReferences.cpp DialogReferences.h DialogReferences.ui @@ -17,14 +17,17 @@ add_library(${PluginName} SHARED References.h ) -target_link_libraries(${PluginName} Qt5::Widgets edb) +target_link_libraries(${PLUGIN_NAME} Qt5::Widgets edb) -install (TARGETS ${PluginName} DESTINATION ${CMAKE_INSTALL_LIBDIR}/edb) +install (TARGETS ${PLUGIN_NAME} DESTINATION ${CMAKE_INSTALL_LIBDIR}/edb) -target_add_warnings(${PluginName}) +target_add_warnings(${PLUGIN_NAME}) -set_property(TARGET ${PluginName} PROPERTY CXX_EXTENSIONS OFF) -set_property(TARGET ${PluginName} PROPERTY CXX_STANDARD 17) -set_property(TARGET ${PluginName} PROPERTY CXX_STANDARD_REQUIRED ON) -set_property(TARGET ${PluginName} PROPERTY LIBRARY_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}) -set_property(TARGET ${PluginName} PROPERTY RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}) +set_target_properties(${PLUGIN_NAME} + PROPERTIES + CXX_EXTENSIONS OFF + CXX_STANDARD 17 + CXX_STANDARD_REQUIRED ON + LIBRARY_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR} + RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR} +) diff --git a/plugins/SymbolViewer/CMakeLists.txt b/plugins/SymbolViewer/CMakeLists.txt index 81631ad06..c107ca09b 100644 --- a/plugins/SymbolViewer/CMakeLists.txt +++ b/plugins/SymbolViewer/CMakeLists.txt @@ -1,15 +1,15 @@ -cmake_minimum_required (VERSION 3.1) +cmake_minimum_required (VERSION 3.15) include("GNUInstallDirs") set(CMAKE_INCLUDE_CURRENT_DIR ON) set(CMAKE_AUTOMOC ON) set(CMAKE_AUTOUIC ON) -set(PluginName "SymbolViewer") +set(PLUGIN_NAME "SymbolViewer") find_package(Qt5 5.0.0 REQUIRED Widgets) -add_library(${PluginName} SHARED +add_library(${PLUGIN_NAME} SHARED DialogSymbolViewer.cpp DialogSymbolViewer.h DialogSymbolViewer.ui @@ -17,14 +17,17 @@ add_library(${PluginName} SHARED SymbolViewer.h ) -target_link_libraries(${PluginName} Qt5::Widgets edb) +target_link_libraries(${PLUGIN_NAME} Qt5::Widgets edb) -install (TARGETS ${PluginName} DESTINATION ${CMAKE_INSTALL_LIBDIR}/edb) +install (TARGETS ${PLUGIN_NAME} DESTINATION ${CMAKE_INSTALL_LIBDIR}/edb) -target_add_warnings(${PluginName}) +target_add_warnings(${PLUGIN_NAME}) -set_property(TARGET ${PluginName} PROPERTY CXX_EXTENSIONS OFF) -set_property(TARGET ${PluginName} PROPERTY CXX_STANDARD 17) -set_property(TARGET ${PluginName} PROPERTY CXX_STANDARD_REQUIRED ON) -set_property(TARGET ${PluginName} PROPERTY LIBRARY_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}) -set_property(TARGET ${PluginName} PROPERTY RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}) +set_target_properties(${PLUGIN_NAME} + PROPERTIES + CXX_EXTENSIONS OFF + CXX_STANDARD 17 + CXX_STANDARD_REQUIRED ON + LIBRARY_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR} + RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR} +) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 73f7d020a..c764f98a2 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required (VERSION 3.1) +cmake_minimum_required (VERSION 3.15) include("GNUInstallDirs") set(CMAKE_INCLUDE_CURRENT_DIR ON) diff --git a/src/test/CMakeLists.txt b/src/test/CMakeLists.txt index 4b5a2e874..d4f8f065e 100644 --- a/src/test/CMakeLists.txt +++ b/src/test/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required (VERSION 3.1) +cmake_minimum_required (VERSION 3.15) add_executable(ValueTest Test.cpp