diff --git a/conda-recipes/ctbgui/build.sh b/conda-recipes/ctbgui/build.sh new file mode 100755 index 000000000..d423266a8 --- /dev/null +++ b/conda-recipes/ctbgui/build.sh @@ -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 \ No newline at end of file diff --git a/conda-recipes/ctbgui/meta.yaml b/conda-recipes/ctbgui/meta.yaml new file mode 100644 index 000000000..21e98c7fa --- /dev/null +++ b/conda-recipes/ctbgui/meta.yaml @@ -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 \ No newline at end of file diff --git a/ctbGui/CMakeLists.txt b/ctbGui/CMakeLists.txt index 1799bddc5..ee7fc16b4 100644 --- a/ctbGui/CMakeLists.txt +++ b/ctbGui/CMakeLists.txt @@ -83,8 +83,12 @@ target_link_libraries(ctbGui PUBLIC ${TIFF_LIBRARIES} ) -set_target_properties(ctbGui PROPERTIES - RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin - -) +#set_target_properties(ctbGui PROPERTIES +# RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin +# +#) +install(TARGETS ctbGui ctbRootLib + RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} + LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} +) \ No newline at end of file