-
Notifications
You must be signed in to change notification settings - Fork 122
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added a directories and cmakelists for ISISLiveData library. Re #7719
- Loading branch information
1 parent
256742b
commit df1a236
Showing
4 changed files
with
90 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
set ( SRC_FILES | ||
) | ||
|
||
set ( INC_FILES | ||
inc/MantidISISLiveData/DllConfig.h | ||
) | ||
|
||
set ( TEST_FILES | ||
) | ||
|
||
|
||
# Use a precompiled header where they are supported | ||
#enable_precompiled_headers( inc/MantidISISLiveData/PrecompiledHeader.h SRC_FILES ) | ||
# Add the target for this directory | ||
add_library ( ISISLiveData ${SRC_FILES} ${INC_FILES}) | ||
# Set the name of the generated library | ||
set_target_properties ( ISISLiveData PROPERTIES OUTPUT_NAME MantidISISLiveData | ||
COMPILE_DEFINITIONS IN_MANTID_ISISLIVEDATA ) | ||
# Add to the 'Framework' group in VS | ||
set_property ( TARGET ISISLiveData PROPERTY FOLDER "MantidFramework" ) | ||
|
||
include_directories ( inc ) | ||
|
||
target_link_libraries ( ISISLiveData ${MANTIDLIBS} ) | ||
|
||
# Add the unit tests directory | ||
add_subdirectory ( test ) | ||
|
||
########################################################################### | ||
# Installation settings | ||
########################################################################### | ||
|
||
install ( TARGETS ISISLiveData ${SYSTEM_PACKAGE_TARGET} DESTINATION ${PLUGINS_DIR} ) | ||
|
||
|
38 changes: 38 additions & 0 deletions
38
Code/Mantid/Framework/ISISLiveData/inc/MantidISISLiveData/DllConfig.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
#ifndef MANTID_ISISLIVEDATA_DLLCONFIG_H_ | ||
#define MANTID_ISISLIVEDATA_DLLCONFIG_H_ | ||
|
||
/* | ||
This file contains the DLLExport/DLLImport linkage configuration for the | ||
DataObjects library | ||
@author Martyn Gigg, Tessella plc | ||
Copyright © 2011 ISIS Rutherford Appleton Laboratory & NScD Oak Ridge National Laboratory | ||
This file is part of Mantid. | ||
Mantid is free software; you can redistribute it and/or modify | ||
it under the terms of the GNU General Public License as published by | ||
the Free Software Foundation; either version 3 of the License, or | ||
(at your option) any later version. | ||
Mantid is distributed in the hope that it will be useful, | ||
but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
GNU General Public License for more details. | ||
You should have received a copy of the GNU General Public License | ||
along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
File change history is stored at: <https://github.com/mantidproject/mantid>. | ||
Code Documentation is available at: <http://doxygen.mantidproject.org> | ||
*/ | ||
#include "MantidKernel/System.h" | ||
|
||
#ifdef IN_MANTID_ISISLIVEDATA | ||
#define MANTID_ISISLIVEDATA_DLL DLLExport | ||
#else | ||
#define MANTID_ISISLIVEDATA_DLL DLLImport | ||
#endif /* IN_MANTID_ISISLIVEDATA*/ | ||
|
||
#endif // MANTID_ISISLIVEDATA_DLLCONFIG_H_ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
if ( CXXTEST_FOUND ) | ||
include_directories ( SYSTEM ${CXXTEST_INCLUDE_DIR} ${GMOCK_INCLUDE_DIR} ${GTEST_INCLUDE_DIR} ) | ||
|
||
include_directories ( ../../TestHelpers/inc ) | ||
# This variable is used within the cxxtest_add_test macro to build this helper class into the test executable. | ||
# It will go out of scope at the end of this file so doesn't need un-setting | ||
set ( TESTHELPER_SRCS ../../TestHelpers/src/ComponentCreationHelper.cpp ../../TestHelpers/src/WorkspaceCreationHelper.cpp ) | ||
cxxtest_add_test ( ISISLiveDataTest ${TEST_FILES} ) | ||
target_link_libraries( ISISLiveDataTest ISISLiveData ) | ||
# Specify implicit dependency, but don't link to it | ||
add_dependencies ( FrameworkTests ISISLiveDataTest ) | ||
# Add to the 'FrameworkTests' group in VS | ||
set_property ( TARGET ISISLiveDataTest PROPERTY FOLDER "UnitTests" ) | ||
endif () | ||
|