mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-21 03:10:02 +02:00
recepie for ctbgui
This commit is contained in:
parent
a891db8d06
commit
4a6693de3f
24
conda-recipes/ctbgui/build.sh
Executable file
24
conda-recipes/ctbgui/build.sh
Executable file
@ -0,0 +1,24 @@
|
|||||||
|
# SPDX-License-Identifier: LGPL-3.0-or-other
|
||||||
|
# Copyright (C) 2021 Contributors to the SLS Detector Package
|
||||||
|
|
||||||
|
mkdir build
|
||||||
|
|
||||||
|
cd build
|
||||||
|
cmake .. \
|
||||||
|
-DCMAKE_PREFIX_PATH=$CONDA_PREFIX \
|
||||||
|
-DCMAKE_INSTALL_PREFIX=$PREFIX \
|
||||||
|
-DSLS_USE_CTBGUI=ON \
|
||||||
|
-DSLS_EXT_BUILD=ON\
|
||||||
|
-DCMAKE_BUILD_TYPE=Release \
|
||||||
|
-DSLS_USE_HDF5=OFF\
|
||||||
|
|
||||||
|
NCORES=$(getconf _NPROCESSORS_ONLN)
|
||||||
|
echo "Building using: ${NCORES} cores"
|
||||||
|
cmake --build . -- -j${NCORES}
|
||||||
|
cmake --build . --target install
|
||||||
|
|
||||||
|
CTEST_OUTPUT_ON_FAILURE=1 ctest -j 2
|
||||||
|
|
||||||
|
#Clean up for the next build
|
||||||
|
# cd ..
|
||||||
|
# rm -rf build
|
94
conda-recipes/ctbgui/meta.yaml
Normal file
94
conda-recipes/ctbgui/meta.yaml
Normal file
@ -0,0 +1,94 @@
|
|||||||
|
package:
|
||||||
|
name: ctbgui
|
||||||
|
version: {{ environ.get('GIT_DESCRIBE_TAG', '') }}
|
||||||
|
|
||||||
|
source:
|
||||||
|
- path: ../..
|
||||||
|
|
||||||
|
build:
|
||||||
|
number: 0
|
||||||
|
binary_relocation: True
|
||||||
|
rpaths:
|
||||||
|
- lib/
|
||||||
|
|
||||||
|
requirements:
|
||||||
|
build:
|
||||||
|
- {{ compiler('c') }}
|
||||||
|
- {{compiler('cxx')}}
|
||||||
|
- slsdetlib {{ environ.get('GIT_DESCRIBE_TAG', '') }}
|
||||||
|
- cmake
|
||||||
|
- root
|
||||||
|
# - qwt 6.*
|
||||||
|
# - qt 4.8.*
|
||||||
|
# - zeromq
|
||||||
|
# - xorg-libx11
|
||||||
|
# - xorg-libice
|
||||||
|
# - xorg-libxext
|
||||||
|
# - xorg-libsm
|
||||||
|
# - xorg-libxau
|
||||||
|
# - xorg-libxrender
|
||||||
|
# - xorg-libxfixes
|
||||||
|
# - {{ cdt('mesa-libgl-devel') }} # [linux]
|
||||||
|
# - {{ cdt('mesa-libegl-devel') }} # [linux]
|
||||||
|
# - {{ cdt('mesa-dri-drivers') }} # [linux]
|
||||||
|
# - {{ cdt('libselinux') }} # [linux]
|
||||||
|
# - {{ cdt('libxdamage') }} # [linux]
|
||||||
|
# - {{ cdt('libxxf86vm') }} # [linux]
|
||||||
|
# - expat
|
||||||
|
|
||||||
|
host:
|
||||||
|
- libstdcxx-ng
|
||||||
|
- libgcc-ng
|
||||||
|
- root
|
||||||
|
- slsdetlib {{ environ.get('GIT_DESCRIBE_TAG', '') }}
|
||||||
|
# - zeromq
|
||||||
|
# - xorg-libx11
|
||||||
|
# - xorg-libice
|
||||||
|
# - xorg-libxext
|
||||||
|
# - xorg-libsm
|
||||||
|
# - xorg-libxau
|
||||||
|
# - xorg-libxrender
|
||||||
|
# - xorg-libxfixes
|
||||||
|
# - expat
|
||||||
|
|
||||||
|
run:
|
||||||
|
# - zeromq
|
||||||
|
- libstdcxx-ng
|
||||||
|
- libgcc-ng
|
||||||
|
- root
|
||||||
|
# - slsdetlib {{ environ.get('GIT_DESCRIBE_TAG', '') }}
|
||||||
|
# - qwt 6.*
|
||||||
|
# - qt 4.8.*
|
||||||
|
# - expat
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
# - name: slsdetgui
|
||||||
|
# script: copy_gui.sh
|
||||||
|
# requirements:
|
||||||
|
|
||||||
|
# build:
|
||||||
|
# - {{ compiler('c') }}
|
||||||
|
# - {{compiler('cxx')}}
|
||||||
|
# - {{ pin_subpackage('slsdetlib', exact=True) }}
|
||||||
|
# - qwt 6.*
|
||||||
|
|
||||||
|
# run:
|
||||||
|
# - {{ pin_subpackage('slsdetlib', exact=True) }}
|
||||||
|
# - qwt 6.*
|
||||||
|
# - qt 4.8.*
|
||||||
|
# - expat
|
||||||
|
|
||||||
|
# - name: moenchzmq
|
||||||
|
# script: copy_moench.sh
|
||||||
|
# requirements:
|
||||||
|
|
||||||
|
# build:
|
||||||
|
# - {{ compiler('c') }}
|
||||||
|
# - {{compiler('cxx')}}
|
||||||
|
# - {{ pin_subpackage('slsdetlib', exact=True) }}
|
||||||
|
|
||||||
|
|
||||||
|
# run:
|
||||||
|
# - {{ pin_subpackage('slsdetlib', exact=True) }}
|
||||||
|
# - expat
|
@ -83,8 +83,12 @@ target_link_libraries(ctbGui PUBLIC
|
|||||||
${TIFF_LIBRARIES}
|
${TIFF_LIBRARIES}
|
||||||
)
|
)
|
||||||
|
|
||||||
set_target_properties(ctbGui PROPERTIES
|
#set_target_properties(ctbGui PROPERTIES
|
||||||
RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin
|
# RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin
|
||||||
|
#
|
||||||
|
#)
|
||||||
|
|
||||||
|
install(TARGETS ctbGui ctbRootLib
|
||||||
|
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
|
||||||
|
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user