-
Notifications
You must be signed in to change notification settings - Fork 122
/
CMakeLists.txt
103 lines (92 loc) · 3.32 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
set ( SRC_FILES
src/CatalogPublish.cpp
src/CatalogAlgorithmHelper.cpp
src/CatalogDownloadDataFiles.cpp
src/CatalogGetDataFiles.cpp
src/CatalogGetDataSets.cpp
src/CatalogKeepAlive.cpp
src/CatalogListInstruments.cpp
src/CatalogListInvestigationTypes.cpp
src/CatalogLogin.cpp
src/CatalogLogout.cpp
src/CatalogMyDataSearch.cpp
src/CatalogSearch.cpp
src/CatalogSearchParam.cpp
src/GSoap.cpp
src/ICatDOI/ICatDOIGSoapGenerated.cpp
src/ICat3/ICat3GSoapGenerated.cpp
src/ICat3/ICat3ErrorHandling.cpp
src/ICat3/ICat3Catalog.cpp
src/ICat3/ICat3Helper.cpp
src/ICat4/ICat4GSoapGenerated.cpp
src/ICat4/ICat4Catalog.cpp
)
set ( SRC_UNITY_IGNORE_FILES )
set ( INC_FILES
inc/MantidICat/CatalogPublish.h
inc/MantidICat/CatalogAlgorithmHelper.h
inc/MantidICat/CatalogDownloadDataFiles.h
inc/MantidICat/CatalogGetDataFiles.h
inc/MantidICat/CatalogGetDataSets.h
inc/MantidICat/CatalogKeepAlive.h
inc/MantidICat/CatalogListInstruments.h
inc/MantidICat/CatalogListInvestigationTypes.h
inc/MantidICat/CatalogLogin.h
inc/MantidICat/CatalogLogout.h
inc/MantidICat/CatalogMyDataSearch.h
inc/MantidICat/CatalogSearch.h
inc/MantidICat/CatalogSearchParam.h
inc/MantidICat/ICatExport.h
inc/MantidICat/GSoap/soapserializersH.h
inc/MantidICat/GSoap/soapserializersStub.h
inc/MantidICat/GSoap/stdsoap2.h
inc/MantidICat/ICatDOI/GSoapGenerated/ICatDOIH.h
inc/MantidICat/ICatDOI/GSoapGenerated/ICatDOIDOIPortBindingProxy.h
inc/MantidICat/ICatDOI/GSoapGenerated/ICatDOIStub.h
inc/MantidICat/ICat3/GSoapGenerated/ICat3H.h
inc/MantidICat/ICat3/GSoapGenerated/ICat3ICATPortBindingProxy.h
inc/MantidICat/ICat3/GSoapGenerated/ICat3Stub.h
inc/MantidICat/ICat3/ICat3ErrorHandling.h
inc/MantidICat/ICat3/ICat3Catalog.h
inc/MantidICat/ICat3/ICat3Helper.h
inc/MantidICat/ICat4/GSoapGenerated/ICat4H.h
inc/MantidICat/ICat4/GSoapGenerated/ICat4ICATPortBindingProxy.h
inc/MantidICat/ICat4/GSoapGenerated/ICat4Stub.h
inc/MantidICat/ICat4/ICat4Catalog.h
)
set ( TEST_FILES
CatalogDownloadDataFilesTest.h
CatalogGetDataFilesTest.h
CatalogGetDataSetsTest.h
CatalogListInstrumentsTest.h
CatalogListInvestigationTypesTest.h
CatalogLoginTest.h
CatalogMyDataSearchTest.h
CatalogSearchTest.h
CompositeCatalogTest.h
)
if(UNITY_BUILD)
include(UnityBuild)
enable_unity_build(ICat SRC_FILES SRC_UNITY_IGNORE_FILES 10)
endif(UNITY_BUILD)
# Add ssl dependency
find_package ( OpenSSL REQUIRED )
include_directories ( ${OPENSSL_INCLUDE_DIR} )
add_definitions ( -DWITH_OPENSSL -DWITH_NONAMESPACES )
# Add a precompiled header where they are supported
enable_precompiled_headers( inc/MantidICat/PrecompiledHeader.h SRC_FILES )
# Add the target for this directory
add_library ( ICat ${SRC_FILES} ${INC_FILES})
# Set the name of the generated library
set_target_properties ( ICat PROPERTIES OUTPUT_NAME MantidICat
COMPILE_DEFINITIONS IN_MANTID_ICAT )
# Add to the 'Framework' group in VS
set_property ( TARGET ICat PROPERTY FOLDER "MantidFramework" )
include_directories ( inc )
target_link_libraries ( ICat ${MANTIDLIBS} ${OPENSSL_LIBRARIES} )
# Add the unit tests directory
add_subdirectory ( test )
###########################################################################
# Installation settings
###########################################################################
install ( TARGETS ICat ${SYSTEM_PACKAGE_TARGET} DESTINATION ${PLUGINS_DIR} )