cygwin compile#51
This commit is contained in:
parent
9cfa104836
commit
0660cab009
|
@ -18,10 +18,10 @@ FIND_PATH(QWT_INCLUDE_DIR NAMES qwt.h PATHS
|
||||||
/usr/local/include
|
/usr/local/include
|
||||||
"$ENV{LIB_DIR}/include"
|
"$ENV{LIB_DIR}/include"
|
||||||
"$ENV{INCLUDE}"
|
"$ENV{INCLUDE}"
|
||||||
PATH_SUFFIXES qwt-qt4 qwt qwt5
|
PATH_SUFFIXES qwt-qt4 qwt qwt5 qt4
|
||||||
)
|
)
|
||||||
|
|
||||||
FIND_LIBRARY(QWT_LIBRARY NAMES qwt qwt5 qwt-qt4 qwt5-qt4 PATHS
|
FIND_LIBRARY(QWT_LIBRARY NAMES qwt qt4 qwt5 qwt-qt4 qwt5-qt4 PATHS
|
||||||
/usr/lib
|
/usr/lib
|
||||||
/usr/local/lib
|
/usr/local/lib
|
||||||
"$ENV{LIB_DIR}/lib"
|
"$ENV{LIB_DIR}/lib"
|
||||||
|
|
|
@ -159,7 +159,14 @@ def guessShell ( forcedShell ):
|
||||||
if shellName is None:
|
if shellName is None:
|
||||||
try:
|
try:
|
||||||
psResult = subprocess.run( ['ps', '-p', str(os.getppid()) ], capture_output=True, check=True )
|
psResult = subprocess.run( ['ps', '-p', str(os.getppid()) ], capture_output=True, check=True )
|
||||||
shell = psResult.stdout.splitlines()[1].decode('utf8').split()[3].lstrip('-')
|
cmdnom = psResult.stdout.splitlines()[0].decode('utf8').split()
|
||||||
|
if "CMD" in cmdnom:
|
||||||
|
cmdidx = cmdnom.index("CMD")
|
||||||
|
elif "COMMAND" in cmdnom:
|
||||||
|
cmdidx = cmdnom.index("COMMAND")
|
||||||
|
else:
|
||||||
|
cmdidx = 3
|
||||||
|
shell = psResult.stdout.splitlines()[1].decode('utf8').split()[cmdidx].lstrip('-')
|
||||||
whichCommand = subprocess.run( ['which', shell ], capture_output=True, check=True )
|
whichCommand = subprocess.run( ['which', shell ], capture_output=True, check=True )
|
||||||
shellPath = whichCommand.stdout.splitlines()[0].decode('utf8')
|
shellPath = whichCommand.stdout.splitlines()[0].decode('utf8')
|
||||||
except Exception:
|
except Exception:
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
# -*- explicit-buffer-name: "CMakeLists.txt<bora/src>" -*-
|
# -*- explicit-buffer-name: "CMakeLists.txt<bora/src>" -*-
|
||||||
|
|
||||||
|
find_package (Qwt REQUIRED)
|
||||||
include_directories( ${BORA_SOURCE_DIR}/src
|
include_directories( ${BORA_SOURCE_DIR}/src
|
||||||
${ANABATIC_INCLUDE_DIR}
|
${ANABATIC_INCLUDE_DIR}
|
||||||
${KATANA_INCLUDE_DIR}
|
${KATANA_INCLUDE_DIR}
|
||||||
|
@ -83,6 +84,7 @@
|
||||||
PyBora.cpp
|
PyBora.cpp
|
||||||
)
|
)
|
||||||
qtX_wrap_cpp( mocCpps ${mocIncludes} )
|
qtX_wrap_cpp( mocCpps ${mocIncludes} )
|
||||||
|
find_package (Python3 COMPONENTS Interpreter Development)
|
||||||
|
|
||||||
set( depLibs ${KATANA_LIBRARIES}
|
set( depLibs ${KATANA_LIBRARIES}
|
||||||
${ANABATIC_LIBRARIES}
|
${ANABATIC_LIBRARIES}
|
||||||
|
@ -99,7 +101,9 @@
|
||||||
${LEFDEF_LIBRARIES}
|
${LEFDEF_LIBRARIES}
|
||||||
${OA_LIBRARIES}
|
${OA_LIBRARIES}
|
||||||
${QWT_LIBRARY}
|
${QWT_LIBRARY}
|
||||||
|
${QT_LIBRARIES}
|
||||||
${QtX_LIBRARIES}
|
${QtX_LIBRARIES}
|
||||||
|
${Python3_LIBRARIES}
|
||||||
${Boost_LIBRARIES}
|
${Boost_LIBRARIES}
|
||||||
-lutil
|
-lutil
|
||||||
)
|
)
|
||||||
|
|
|
@ -24,6 +24,7 @@
|
||||||
PyGraphicTutorialEngine.cpp
|
PyGraphicTutorialEngine.cpp
|
||||||
)
|
)
|
||||||
qtX_wrap_cpp( mocCpps ${mocIncludes} )
|
qtX_wrap_cpp( mocCpps ${mocIncludes} )
|
||||||
|
find_package (Python3 COMPONENTS Interpreter Development)
|
||||||
|
|
||||||
set( depLibs ${CORIOLIS_PYTHON_LIBRARIES}
|
set( depLibs ${CORIOLIS_PYTHON_LIBRARIES}
|
||||||
${CORIOLIS_LIBRARIES}
|
${CORIOLIS_LIBRARIES}
|
||||||
|
@ -40,6 +41,7 @@
|
||||||
${QtX_LIBRARIES}
|
${QtX_LIBRARIES}
|
||||||
${Boost_LIBRARIES}
|
${Boost_LIBRARIES}
|
||||||
${LIBXML2_LIBRARIES}
|
${LIBXML2_LIBRARIES}
|
||||||
|
${Python3_LIBRARIES}
|
||||||
-lutil
|
-lutil
|
||||||
${LIBEXECINFO_LIBRARIES}
|
${LIBEXECINFO_LIBRARIES}
|
||||||
)
|
)
|
||||||
|
|
|
@ -44,6 +44,7 @@
|
||||||
|
|
||||||
qtX_wrap_cpp( mocCpps ${mocincludes} )
|
qtX_wrap_cpp( mocCpps ${mocincludes} )
|
||||||
qtX_add_resources( RCC_SRCS Unicorn.qrc )
|
qtX_add_resources( RCC_SRCS Unicorn.qrc )
|
||||||
|
find_package (Python3 COMPONENTS Interpreter Development)
|
||||||
|
|
||||||
set( depLibs ${SOLSTICE_GRAPHICAL_LIBRARIES}
|
set( depLibs ${SOLSTICE_GRAPHICAL_LIBRARIES}
|
||||||
${SOLSTICE_LIBRARIES}
|
${SOLSTICE_LIBRARIES}
|
||||||
|
@ -76,6 +77,7 @@
|
||||||
${LEFDEF_LIBRARIES}
|
${LEFDEF_LIBRARIES}
|
||||||
${OA_LIBRARIES}
|
${OA_LIBRARIES}
|
||||||
${QtX_LIBRARIES}
|
${QtX_LIBRARIES}
|
||||||
|
${Python3_LIBRARIES}
|
||||||
${Boost_LIBRARIES}
|
${Boost_LIBRARIES}
|
||||||
|
|
||||||
-lutil
|
-lutil
|
||||||
|
|
Loading…
Reference in New Issue