blob: fc3d8202c4a0f7f554684fe9061f9b03d1353d61 [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.4)
project(cryptoImpl LANGUAGES CXX)
add_library(cryptoImpl SHARED
${CMAKE_CURRENT_BINARY_DIR}/cryptoimpl_export.h
DHImpl.hpp
DHImpl.cpp
Ssl.hpp
SSLImpl.hpp
SSLImpl.cpp)
include(GenerateExportHeader)
generate_export_header(cryptoImpl)
target_include_directories(cryptoImpl
PUBLIC
$<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}>)
set_target_properties(cryptoImpl PROPERTIES
CXX_VISIBILITY_PRESET hidden
VISIBILITY_INLINES_HIDDEN ON)
target_link_libraries(cryptoImpl
PRIVATE
ACE_SSL
_WarningsAsError
PUBLIC
apache-geode
crypto
ssl
c++11
)
if ("Windows" STREQUAL ${CMAKE_SYSTEM_NAME} )
install(TARGETS cryptoImpl
RUNTIME DESTINATION bin
ARCHIVE DESTINATION lib)
else()
install (TARGETS cryptoImpl DESTINATION lib)
endif()