blob: a37887ca28798410de8a91d605cfa45492428585 [file] [log] [blame]
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
cmake_minimum_required( VERSION 3.15 )
project(DUnitFramework CSharp)
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/packages.config ${CMAKE_CURRENT_BINARY_DIR}/packages.config COPYONLY)
add_library(DUnitFramework SHARED
packages.config
AssemblyInfo.cs
ClientBase.cs
ClientGroup.cs
CMakeLists.txt
DUnitTestClass.cs
Exceptions.cs
IClientServerComm.cs
Log.cs
ServerCommunication.cs
ServerConnection.cs
TimeBomb.cs
UnitProcess.cs
UnitThread.cs
Util.cs
XmlNodeReaderWriter.cs
)
target_link_libraries(DUnitFramework
PUBLIC
Apache.Geode
)
set_target_properties(DUnitFramework PROPERTIES
VS_GLOBAL_ROOTNAMESPACE Apache.Geode.DUnitFramework
VS_GLOBAL_TreatWarningsAsErrors True
VS_GLOBAL_PROJECT_TYPES "{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}"
VS_DOTNET_REFERENCES "System;System.Xml;System.Runtime.Remoting;System.Management"
VS_DOTNET_REFERENCE_NUnit "${CMAKE_BINARY_DIR}/packages/NUnit.2.6.4/lib/nunit.framework.dll"
FOLDER cli/test/integration
)
add_dependencies(DUnitFramework nuget-restore)