-
Notifications
You must be signed in to change notification settings - Fork 54
Expand file tree
/
Copy pathExternal_wxWidgets.cmake
More file actions
40 lines (34 loc) · 932 Bytes
/
External_wxWidgets.cmake
File metadata and controls
40 lines (34 loc) · 932 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
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)
")