changed remaining cmake options to have SLS_ prefix

This commit is contained in:
maliakal_d 2019-02-14 15:42:04 +01:00
parent c91c2c224a
commit aaae6d854c
3 changed files with 6 additions and 6 deletions

View File

@ -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)

View File

@ -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

View File

@ -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