Skip to content

Commit

Permalink
CPM Integration
Browse files Browse the repository at this point in the history
  • Loading branch information
Dax89 committed Apr 1, 2022
1 parent 954cc5a commit dab38bf
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 9 deletions.
3 changes: 0 additions & 3 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,3 @@
[submodule "libs/qhexview"]
path = libs/qhexview
url = https://github.com/Dax89/QHexView.git
[submodule "libs/KDDockWidgets"]
path = libs/KDDockWidgets
url = https://github.com/KDAB/KDDockWidgets.git
17 changes: 13 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ find_package(Qt5 ${_QT_VERSION_REQ} REQUIRED COMPONENTS Widgets)
#find_package(Qt5X11Extras ${_QT_VERSION_REQ} REQUIRED) # Needed for KDDockWidgets
find_package(Qt5LinguistTools ${_QT_VERSION_REQ})

include(LibREDasm/cmake/CPM.cmake)

if(GIT_FOUND)
execute_process(COMMAND ${GIT_EXECUTABLE} rev-parse --short HEAD
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
Expand All @@ -32,10 +34,17 @@ endif()
set(REDASM_BUILD_VERSION "${REDASM_BUILD_TIMESTAMP}.${REDASM_GIT_VERSION}")
add_definitions(-DREDASM_VERSION="${REDASM_VERSION_BASE} \(${REDASM_BUILD_VERSION}\)")

set(KDDockWidgets_STATIC ON CACHE BOOL "" FORCE)
set(KDDockWidgets_EXAMPLES OFF CACHE BOOL "" FORCE)
set(KDDockWidgets_UNITY_BUILD OFF CACHE BOOL "" FORCE)
add_subdirectory(libs/KDDockWidgets EXCLUDE_FROM_ALL)
set(KDDOCKWIDGETS_OPTIONS "KDDockWidgets_STATIC ON"
"KDDockWidgets_EXAMPLES OFF"
"KDDockWidgets_UNITY_BUILD OFF")

CPMAddPackage(
NAME KDDockWidgetes
GIT_REPOSITORY https://github.com/KDAB/KDDockWidgets
VERSION 1.4.0
OPTIONS ""
)

add_subdirectory(libs/qhexview EXCLUDE_FROM_ALL)
add_subdirectory(LibREDasm)

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ REDasm is still under heavy development, currently is supports:
### Requirements
- CMake 3.12
- C++17 compiler (tested on GCC 10.x and MSVC2019)
- Qt 5.11
- Qt 5.12

### Building from source
Read [here](COMPILE.md)
Expand Down
1 change: 0 additions & 1 deletion libs/KDDockWidgets
Submodule KDDockWidgets deleted from 5899e3

0 comments on commit dab38bf

Please sign in to comment.