Compare commits

...

3 Commits

Author SHA1 Message Date
12c5844bc9 removed commented out lines 2022-04-28 11:38:07 +02:00
3db8f9957c fixed location of cmake files 2022-04-28 11:32:52 +02:00
6bad9e9f31 build only py 2022-04-28 09:30:54 +02:00
3 changed files with 14 additions and 3 deletions

View File

@ -71,6 +71,7 @@ if(SLS_BUILD_ONLY_MOENCH)
endif()
set(ClangFormat_EXCLUDE_PATTERNS "build/"
"libs/"
"slsDetectorCalibration/"
@ -102,6 +103,7 @@ else()
endif()
#Add two fake libraries to manage options
add_library(slsProjectOptions INTERFACE)
add_library(slsProjectWarnings INTERFACE)
@ -224,8 +226,6 @@ if (SLS_USE_INTEGRATION_TESTS)
endif (SLS_USE_INTEGRATION_TESTS)
if (SLS_USE_PYTHON)
find_package (Python 3.6 COMPONENTS Interpreter Development)
add_subdirectory(libs/pybind11)
add_subdirectory(python)
endif(SLS_USE_PYTHON)

View File

@ -19,4 +19,4 @@ cp build/install/bin/slsMultiReceiver $PREFIX/bin/.
cp build/install/include/sls/* $PREFIX/include/sls
cp -r build/install/share/ $PREFIX/share
cp -rv build/install/share $PREFIX

View File

@ -1,6 +1,17 @@
# SPDX-License-Identifier: LGPL-3.0-or-other
# Copyright (C) 2021 Contributors to the SLS Detector Package
if (CMAKE_CURRENT_SOURCE_DIR STREQUAL CMAKE_SOURCE_DIR)
#if we are only building the python extension
cmake_minimum_required(VERSION 3.12)
project(slsdet)
find_package(slsDetectorPackage 6 REQUIRED)
endif()
find_package (Python 3.6 COMPONENTS Interpreter Development)
add_subdirectory(../libs/pybind11 ${CMAKE_BINARY_DIR}/bin/)
pybind11_add_module(_slsdet
src/main.cpp
src/enums.cpp