2020-01-02 06:44:10 +01:00
|
|
|
# This file is part of the TrinityCore Project. See AUTHORS file for Copyright information
|
2011-04-27 17:56:56 +02:00
|
|
|
#
|
|
|
|
|
# This file is free software; as a special exception the author gives
|
|
|
|
|
# unlimited permission to copy and/or distribute it, with or without
|
|
|
|
|
# modifications, as long as this notice is preserved.
|
|
|
|
|
#
|
|
|
|
|
# This program is distributed in the hope that it will be useful, but
|
|
|
|
|
# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
|
|
|
|
|
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
|
|
|
|
2010-07-29 21:08:16 +02:00
|
|
|
file(GLOB sources *.cpp *.h)
|
|
|
|
|
|
2016-03-14 15:27:33 +01:00
|
|
|
add_library(gsoap STATIC ${sources})
|
2010-07-23 09:26:23 +02:00
|
|
|
|
2016-03-14 15:27:33 +01:00
|
|
|
set_target_properties(gsoap PROPERTIES LINKER_LANGUAGE CXX)
|
2010-07-23 09:26:23 +02:00
|
|
|
|
2016-03-14 15:27:33 +01:00
|
|
|
target_include_directories(gsoap
|
|
|
|
|
PUBLIC
|
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR})
|
2011-04-27 17:56:56 +02:00
|
|
|
|
2016-03-26 18:21:42 +01:00
|
|
|
target_compile_definitions(gsoap
|
|
|
|
|
PUBLIC
|
|
|
|
|
-DWITH_OPENSSL)
|
|
|
|
|
|
|
|
|
|
target_link_libraries(gsoap
|
2017-10-31 01:29:51 +01:00
|
|
|
PRIVATE
|
|
|
|
|
trinity-dependency-interface
|
2016-03-26 18:21:42 +01:00
|
|
|
PUBLIC
|
|
|
|
|
openssl)
|
|
|
|
|
|
2016-03-14 15:27:33 +01:00
|
|
|
set_target_properties(gsoap
|
|
|
|
|
PROPERTIES
|
|
|
|
|
FOLDER
|
|
|
|
|
"dep")
|
2013-04-30 23:28:24 +02:00
|
|
|
|
2016-03-14 15:27:33 +01:00
|
|
|
if (MSVC)
|
|
|
|
|
# Little fix for MSVC / Windows platforms
|
|
|
|
|
target_compile_definitions(gsoap
|
|
|
|
|
PRIVATE
|
|
|
|
|
-D_CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES=0)
|
|
|
|
|
endif()
|