Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 40 additions & 0 deletions CMake/External_wxWidgets.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# wxWidgets

if(Qt_version_major EQUAL 5)
add_package_dependency(
PACKAGE wxWidgets
PACKAGE_DEPENDENCY Qt
PACKAGE_DEPENDENCY_ALIAS Qt5
)
set(wxWidgets_ARGS
-DwxBUILD_TOOLKIT:STRING=qt
-DQt5_DIR:PATH=${Qt5_DIR}
-DQTE_QT_VERSION:STRING=5
)
endif()

# The wxWidgets external project for fletch
ExternalProject_Add(wxWidgets
DEPENDS ${wxWidgets_DEPENDS}
URL ${wxWidgets_file}
URL_MD5 ${wxWidgets_md5}
${COMMON_EP_ARGS}
${COMMON_CMAKE_EP_ARGS}
CMAKE_ARGS
${COMMON_CMAKE_ARGS}
${wxWidgets_ARGS}
)

fletch_external_project_force_install(PACKAGE wxWidgets)

set(wxWidgets_ROOT ${fletch_BUILD_INSTALL_PREFIX} CACHE STRING "")

file(APPEND ${fletch_CONFIG_INPUT} "
########################################
# wxWidgets
########################################
set(wxWidgets_ROOT \${fletch_ROOT})
set(wxWidgets_DIR \${fletch_ROOT}/lib/cmake/wxWidgets)

set(fletch_ENABLED_wxWidgets TRUE)
")
6 changes: 6 additions & 0 deletions CMake/fletch-tarballs.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -588,6 +588,12 @@ set(cppzmq_md5 "f5a2ef3a4d47522fcb261171eb7ecfc4")
set(cppzmq_dlname "cppzmq-v${cppzmq_version}.zip")
list(APPEND fletch_external_sources cppzmq)

# wxWidgets
set(wxWidgets_version "3.1.2")
set(wxWidgets_url "https://github.com/wxWidgets/wxWidgets/archive/v${wxWidgets_version}.zip")
set(wxWidgets_md5 "8e5d9f19427b556e613d2021476042ac")
list(APPEND fletch_external_sources wxWidgets)

#+
# Iterate through our sources, create local filenames and set up the "ENABLE"
# options
Expand Down