mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-24 23:30:03 +02:00
changed remaining cmake options to have SLS_ prefix
This commit is contained in:
parent
c91c2c224a
commit
aaae6d854c
@ -8,7 +8,7 @@ include_directories(
|
||||
)
|
||||
|
||||
|
||||
if(USE_TESTS)
|
||||
if(SLS_USE_TESTS)
|
||||
set(TEST_SOURCES
|
||||
src/test-slsDetector.cpp
|
||||
src/test.cpp
|
||||
@ -38,8 +38,8 @@ endif()
|
||||
|
||||
|
||||
|
||||
#option(USE_TESTS "Determines whether to build tests." OFF)
|
||||
# if(USE_TESTS)
|
||||
#option(SLS_USE_TESTS "Determines whether to build tests." OFF)
|
||||
# if(SLS_USE_TESTS)
|
||||
# # Prepare "Catch" library for other executables
|
||||
# set(CATCH_INCLUDE_DIR ${PROJECT_SOURCE_DIR}/catch)
|
||||
# add_library(Catch INTERFACE)
|
||||
|
@ -377,7 +377,7 @@ Use the following as an example to compile statically and using specific hdf5
|
||||
folder
|
||||
\begin{verbatim}
|
||||
$ HDF5_ROOT=/opt/hdf5v1.10.0 cmake ../slsDetectorPackage
|
||||
-DCMAKE_BUILD_TYPE=Debug -DUSE_HDF5=ON
|
||||
-DCMAKE_BUILD_TYPE=Debug -DSLS_USE_HDF5=ON
|
||||
\end{verbatim}
|
||||
|
||||
After compiling, the libraries and executables will be found at `bin` directory
|
||||
|
@ -48,9 +48,9 @@ set_target_properties(slsSupportLib PROPERTIES
|
||||
PUBLIC_HEADER "${PUBLICHEADERS}"
|
||||
)
|
||||
|
||||
if (USE_TESTS)
|
||||
if (SLS_USE_TESTS)
|
||||
add_subdirectory(tests)
|
||||
endif(USE_TESTS)
|
||||
endif(SLS_USE_TESTS)
|
||||
|
||||
# Install the library
|
||||
install(TARGETS slsSupportLib
|
||||
|
Loading…
x
Reference in New Issue
Block a user