Skip to content

Commit

Permalink
Use FetchContent to get qtextpad rather than keeping it in a submodule.
Browse files Browse the repository at this point in the history
  • Loading branch information
zrax committed Oct 9, 2024
1 parent 933c21f commit cb96256
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
11 changes: 8 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.7)
cmake_minimum_required(VERSION 3.14)
project(PlasmaShop)

set(CMAKE_CXX_STANDARD 14)
Expand Down Expand Up @@ -74,8 +74,13 @@ endif()
add_definitions(-DPLASMASHOP_VERSION="${PlasmaShop_VERSION}")

set(QTEXTPAD_WIDGET_ONLY ON)
add_subdirectory(qtextpad)
include_directories("${CMAKE_CURRENT_SOURCE_DIR}/qtextpad/lib")
include(FetchContent)
FetchContent_Declare(qtextpad
GIT_REPOSITORY https://github.com/zrax/qtextpad.git
GIT_TAG 1.11
)
FetchContent_MakeAvailable(qtextpad)
include_directories("${qtextpad_SOURCE_DIR}/lib")

add_subdirectory(src)

Expand Down
1 change: 0 additions & 1 deletion qtextpad
Submodule qtextpad deleted from c8e282

0 comments on commit cb96256

Please sign in to comment.