mirror of
https://github.com/NGSolve/netgen.git
synced 2025-01-24 03:40:34 +05:00
Enable TkDND on MacOS
This commit is contained in:
parent
8bdd94dab3
commit
85a79f0ca1
@ -30,24 +30,21 @@ if(APPLE)
|
|||||||
LOG_INSTALL 1
|
LOG_INSTALL 1
|
||||||
)
|
)
|
||||||
|
|
||||||
#ExternalProject_Add(tkdnd
|
ExternalProject_Add(project_tkdnd
|
||||||
#DEPENDS tcl tk
|
URL "https://sourceforge.net/projects/tkdnd/files/OS%20X%20Binaries/TkDND%202.8/tkdnd2.8-OSX-MountainLion.tar.gz"
|
||||||
#URL "http://sourceforge.net/projects/tkdnd/files/TkDND/TkDND%202.8/tkdnd2.8-src.tar.gz"
|
URL_MD5 2dbb471b1d66c5f391f3c3c5b71548fb
|
||||||
#URL_MD5 a6d47a996ea957416469b12965d4db91
|
DOWNLOAD_DIR ${CMAKE_CURRENT_SOURCE_DIR}/external_dependencies
|
||||||
#DOWNLOAD_DIR ${CMAKE_CURRENT_SOURCE_DIR}/external_dependencies
|
BUILD_IN_SOURCE 1
|
||||||
#PATCH_COMMAND patch -p1 < ${CMAKE_CURRENT_LIST_DIR}/tkdnd_macosx.patch
|
CONFIGURE_COMMAND ""
|
||||||
#UPDATE_COMMAND "" # Disable update
|
BUILD_COMMAND ""
|
||||||
#BUILD_IN_SOURCE 1
|
INSTALL_COMMAND ${CMAKE_COMMAND} -E copy_directory . ${CMAKE_INSTALL_PREFIX}/../MacOS
|
||||||
#CONFIGURE_COMMAND ./configure --with-tcl=${CMAKE_INSTALL_PREFIX}/../Frameworks/Tcl.framework --with-tk=${CMAKE_INSTALL_PREFIX}/../Frameworks/Tk.framework --prefix=${CMAKE_INSTALL_PREFIX}/../MacOS --libdir=${CMAKE_INSTALL_PREFIX}/../MacOS
|
LOG_DOWNLOAD 1
|
||||||
#BUILD_COMMAND make
|
LOG_CONFIGURE 1
|
||||||
#INSTALL_COMMAND make install
|
LOG_BUILD 1
|
||||||
#LOG_DOWNLOAD 1
|
LOG_INSTALL 1
|
||||||
#LOG_CONFIGURE 1
|
)
|
||||||
#LOG_BUILD 1
|
|
||||||
#LOG_INSTALL 1
|
|
||||||
#)
|
|
||||||
|
|
||||||
list(APPEND NETGEN_DEPENDENCIES project_tcl project_tk)
|
list(APPEND NETGEN_DEPENDENCIES project_tcl project_tk project_tkdnd)
|
||||||
list(APPEND CMAKE_PREFIX_PATH ${CMAKE_INSTALL_PREFIX}../Frameworks)
|
list(APPEND CMAKE_PREFIX_PATH ${CMAKE_INSTALL_PREFIX}../Frameworks)
|
||||||
set(TCL_INCLUDE_PATH ${CMAKE_INSTALL_PREFIX}/../Frameworks/Tcl.framework/Headers)
|
set(TCL_INCLUDE_PATH ${CMAKE_INSTALL_PREFIX}/../Frameworks/Tcl.framework/Headers)
|
||||||
set(TCL_LIBRARY ${CMAKE_INSTALL_PREFIX}/../Frameworks/Tcl.framework)
|
set(TCL_LIBRARY ${CMAKE_INSTALL_PREFIX}/../Frameworks/Tcl.framework)
|
||||||
|
Loading…
Reference in New Issue
Block a user