init
This commit is contained in:
148
sdk/cmake/libs.cmake
Normal file
148
sdk/cmake/libs.cmake
Normal file
@@ -0,0 +1,148 @@
|
||||
|
||||
|
||||
set( ROOT_PATH ${CMAKE_CURRENT_SOURCE_DIR} )
|
||||
set( CMAKE_MODULE_DIR ${CMAKE_CURRENT_SOURCE_DIR})
|
||||
set( CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_CURRENT_LIST_DIR}/../cmake/modules)
|
||||
|
||||
# find_package( libtcmalloc_minimal REQUIRED )
|
||||
# mark_as_advanced(
|
||||
# LIBTCMALLOC_MINIMAL_LIBRARIES
|
||||
# )
|
||||
|
||||
if( LIBTCMALLOC_MINIMAL_LIBRARIES )
|
||||
target_link_libraries( ${EXE_NAME} ${LIBTCMALLOC_MINIMAL_LIBRARIES} )
|
||||
#message( status " --------------${EXE_NAME}-w1-------------------W-------------W----------> ${LIBTCMALLOC_MINIMAL_LIBRARIES}" )
|
||||
endif( LIBTCMALLOC_MINIMAL_LIBRARIES )
|
||||
|
||||
target_link_libraries( ${EXE_NAME} pthread )
|
||||
|
||||
find_package( libev REQUIRED )
|
||||
mark_as_advanced(
|
||||
LIBEV_INCLUDE_DIR
|
||||
LIBEV_LIBRARIES
|
||||
)
|
||||
if( LIBEV_INCLUDE_DIR AND LIBEV_LIBRARIES )
|
||||
include_directories( ${LIBEV_INCLUDE_DIR} )
|
||||
target_link_libraries( ${EXE_NAME} ${LIBEV_LIBRARIES} )
|
||||
|
||||
#message( status " --------------${EXE_NAME}-w1-------------------W-------------W----------> ${LIBEV_INCLUDE_DIR}" )
|
||||
#message( status " --------------${EXE_NAME}-w2-------------------W-------------W----------> ${LIBEV_LIBRARIES}" )
|
||||
|
||||
endif( LIBEV_INCLUDE_DIR AND LIBEV_LIBRARIES )
|
||||
|
||||
find_package( libtolua++ REQUIRED )
|
||||
mark_as_advanced(
|
||||
LIBTOLUA++_INCLUDE_DIR
|
||||
LIBTOLUA++_LIBRARIES
|
||||
)
|
||||
if( LIBTOLUA++_INCLUDE_DIR AND LIBTOLUA++_LIBRARIES )
|
||||
include_directories( ${LIBTOLUA++_INCLUDE_DIR} )
|
||||
target_link_libraries( ${EXE_NAME} ${LIBTOLUA++_LIBRARIES} )
|
||||
|
||||
##message( status " --------------${EXE_NAME}-w1-------------------W-------------W----------> ${LIBTOLUA++_INCLUDE_DIR}" )
|
||||
#message( status " --------------${EXE_NAME}-w2-------------------W-------------W----------> ${LIBTOLUA++_LIBRARIES}" )
|
||||
|
||||
endif( LIBTOLUA++_INCLUDE_DIR AND LIBTOLUA++_LIBRARIES )
|
||||
|
||||
find_package( libmysqlclient REQUIRED )
|
||||
mark_as_advanced(
|
||||
LIBMYSQLCLIENT_INCLUDE_DIR
|
||||
LIBMYSQLCLIENT_LIBRARIES
|
||||
)
|
||||
if( LIBMYSQLCLIENT_INCLUDE_DIR AND LIBMYSQLCLIENT_LIBRARIES )
|
||||
include_directories( ${LIBMYSQLCLIENT_INCLUDE_DIR} )
|
||||
target_link_libraries( ${EXE_NAME} ${LIBMYSQLCLIENT_LIBRARIES} )
|
||||
|
||||
#message( status " --------------${EXE_NAME}-w1-------------------W-------------W----------> ${LIBMYSQLCLIENT_INCLUDE_DIR}" )
|
||||
#message( status " --------------${EXE_NAME}-w2-------------------W-------------W----------> ${LIBMYSQLCLIENT_LIBRARIES}" )
|
||||
|
||||
endif( LIBMYSQLCLIENT_INCLUDE_DIR AND LIBMYSQLCLIENT_LIBRARIES )
|
||||
|
||||
find_package( libzlib1.1.4 REQUIRED )
|
||||
mark_as_advanced(
|
||||
LIBZLIB1.1.4_INCLUDE_DIR
|
||||
LIBZLIB1.1.4_LIBRARIES
|
||||
)
|
||||
if( LIBZLIB1.1.4_INCLUDE_DIR AND LIBZLIB1.1.4_LIBRARIES )
|
||||
include_directories( ${LIBZLIB1.1.4_INCLUDE_DIR} )
|
||||
target_link_libraries( ${EXE_NAME} ${LIBZLIB1.1.4_LIBRARIES} )
|
||||
|
||||
#message( status " --------------${EXE_NAME}-w2-------------------W-------------W----------> ${LIBZLIB1.1.4_INCLUDE_DIR}" )
|
||||
|
||||
#message( status " --------------${EXE_NAME}-w1-------------------W-------------W----------> ${LIBZLIB1.1.4_LIBRARIES}" )
|
||||
endif( LIBZLIB1.1.4_INCLUDE_DIR AND LIBZLIB1.1.4_LIBRARIES )
|
||||
|
||||
find_package( libservercommon REQUIRED )
|
||||
mark_as_advanced(
|
||||
LIBSERVERCOMMON_INCLUDE_DIR
|
||||
LIBSERVERCOMMON_LIBRARIES
|
||||
)
|
||||
if( LIBSERVERCOMMON_INCLUDE_DIR AND LIBSERVERCOMMON_LIBRARIES )
|
||||
include_directories( ${LIBSERVERCOMMON_INCLUDE_DIR} )
|
||||
target_link_libraries( ${EXE_NAME} ${LIBSERVERCOMMON_LIBRARIES} )
|
||||
|
||||
#message( status " --------------${EXE_NAME}-w1-------------------W-------------W----------> ${LIBSERVERCOMMON_INCLUDE_DIR}" )
|
||||
#message( status " --------------${EXE_NAME}-w2-------------------W-------------W----------> ${LIBSERVERCOMMON_LIBRARIES}" )
|
||||
|
||||
endif( LIBSERVERCOMMON_INCLUDE_DIR AND LIBSERVERCOMMON_LIBRARIES )
|
||||
|
||||
|
||||
find_package( libsrv REQUIRED )
|
||||
mark_as_advanced(
|
||||
LIBSRV_INCLUDE_DIR
|
||||
LIBSRV_LIBRARIES
|
||||
)
|
||||
|
||||
if( LIBSRV_INCLUDE_DIR AND LIBSRV_LIBRARIES )
|
||||
|
||||
include_directories( ${LIBSRV_INCLUDE_DIR} )
|
||||
target_link_libraries( ${EXE_NAME} ${LIBSRV_LIBRARIES} )
|
||||
|
||||
#message( status " --------------${EXE_NAME}-w1-------------------W-------------W----------> ${LIBSRV_INCLUDE_DIR}" )
|
||||
#message( status " --------------${EXE_NAME}-w2-------------------W-------------W----------> ${LIBSRV_LIBRARIES}" )
|
||||
|
||||
endif( LIBSRV_INCLUDE_DIR AND LIBSRV_LIBRARIES )
|
||||
|
||||
find_package( libbreakpad REQUIRED )
|
||||
mark_as_advanced(
|
||||
LIBBREAKPAD_INCLUDE_DIR
|
||||
LIBBREAKPAD_LIBRARIES
|
||||
)
|
||||
if( LIBBREAKPAD_INCLUDE_DIR AND LIBBREAKPAD_LIBRARIES )
|
||||
include_directories( ${LIBBREAKPAD_INCLUDE_DIR} )
|
||||
target_link_libraries( ${EXE_NAME} ${LIBBREAKPAD_LIBRARIES} )
|
||||
|
||||
#message( status " --------------${EXE_NAME}-w2-------------------W-------------W----------> ${LIBBREAKPAD_INCLUDE_DIR}" )
|
||||
|
||||
#message( status " --------------${EXE_NAME}-w1-------------------W-------------W----------> ${LIBBREAKPAD_LIBRARIES}" )
|
||||
endif( LIBBREAKPAD_INCLUDE_DIR AND LIBBREAKPAD_LIBRARIES )
|
||||
|
||||
|
||||
find_package( liblua-5.1 REQUIRED )
|
||||
mark_as_advanced(
|
||||
LIBLUA-5.1_INCLUDE_DIR
|
||||
LIBLUA-5.1_LIBRARIES
|
||||
)
|
||||
if( LIBLUA-5.1_INCLUDE_DIR AND LIBLUA-5.1_LIBRARIES )
|
||||
include_directories( ${LIBLUA-5.1_INCLUDE_DIR} )
|
||||
target_link_libraries( ${EXE_NAME} ${LIBLUA-5.1_LIBRARIES} )
|
||||
#message( status " --------------${EXE_NAME}-w2-------------------W-------------W----------> ${LIBLUA-5.1_INCLUDE_DIR}" )
|
||||
#message( status " --------------${EXE_NAME}-w1-------------------W-------------W----------> ${LIBLUA-5.1_LIBRARIES}" )
|
||||
endif( LIBLUA-5.1_INCLUDE_DIR AND LIBLUA-5.1_LIBRARIES )
|
||||
|
||||
|
||||
find_package( libcurl REQUIRED )
|
||||
mark_as_advanced(
|
||||
CURL_INCLUDE_DIR_PATH
|
||||
CURL_LIBRARIE_DIR_PATH
|
||||
)
|
||||
if( CURL_INCLUDE_DIR_PATH AND CURL_LIBRARIE_DIR_PATH )
|
||||
include_directories( ${CURL_INCLUDE_DIR_PATH} )
|
||||
target_link_libraries( ${EXE_NAME} ${CURL_LIBRARIE_DIR_PATH} )
|
||||
|
||||
#message( status " --------------${EXE_NAME}-w1-------------------W-------------W----------> ${CURL_INCLUDE_DIR_PATH}" )
|
||||
#message( status " --------------${EXE_NAME}-w2-------------------W-------------W----------> ${CURL_LIBRARIE_DIR_PATH}" )
|
||||
|
||||
endif( CURL_INCLUDE_DIR_PATH AND CURL_LIBRARIE_DIR_PATH )
|
||||
|
||||
|
||||
20
sdk/cmake/modules/FindlibGameCommon.cmake
Normal file
20
sdk/cmake/modules/FindlibGameCommon.cmake
Normal file
@@ -0,0 +1,20 @@
|
||||
if ( _DEBUG )
|
||||
set( libGameCommon "GameCommon_d" )
|
||||
else()
|
||||
set( libGameCommon "GameCommon_r" )
|
||||
endif()
|
||||
|
||||
message( status " using bundled ${libGameCommon}..." )
|
||||
|
||||
find_path(
|
||||
LIBGAMECOMMON_INCLUDE_DIR
|
||||
NAMES AdvanceAstar.h AMClient.h AppItnMsg.h BufferAllocatorEx.h BufferAllocator.h CBPTypes.h CFilter.h CLVariant.h cp.h CRC16.h CustomClientSocket.h CustomFileDB.h CustomHashTable.h CustomLuaClass.h CustomLuaConfig.h CustomLuaPreProcess.h CustomLuaProfiler.h CustomLuaScript.h CustomServerClientSocket.h CustomServerSocket.h CustomSortList.h CustomWorkSocket.h DataPacket.hpp DataPacketReader.hpp DefExceptHander.h EDPass.h FDOP.h FileDB_test.h LangTextSection.h LuaCLVariant.h LuaLangTextSection.h LuaToBP.h LuaVariantClass.h MiniDateTime.h NameAllocator.h ObjectAllocator.hpp ObjectAllocStat.hpp PathThreadLocale.h SendPackPool.h ShareUtil.h SingleObjectAllocator.hpp Singleton.hpp SQL.h SQLiteDB.h StackWalker.h TimeCall.h TimeStat.h utf8_output.h VirturalMap.h WinService.h EDCode.h
|
||||
#NAMES *.h *.hpp
|
||||
PATHS ${CMAKE_CURRENT_LIST_DIR}/../../../../GameCommon/cpp/include
|
||||
)
|
||||
|
||||
find_library(
|
||||
LIBGAMECOMMON_LIBRARIES
|
||||
NAMES ${libGameCommon}
|
||||
PATHS ${CMAKE_CURRENT_LIST_DIR}/../../../../GameCommon/cpp/libs
|
||||
)
|
||||
19
sdk/cmake/modules/Findlibbreakpad.cmake
Normal file
19
sdk/cmake/modules/Findlibbreakpad.cmake
Normal file
@@ -0,0 +1,19 @@
|
||||
message( status " using bundled Findlibbreakpad.cmake..." )
|
||||
|
||||
|
||||
|
||||
set( INCLUDE_DIR_PATH ${CMAKE_CURRENT_LIST_DIR}/../../../sdk/breakpad/client/linux/handler/ )
|
||||
set( LIBRARIE_DIR_PATH ${CMAKE_CURRENT_LIST_DIR}/../../../libs/bin/ )
|
||||
|
||||
|
||||
find_path(
|
||||
LIBBREAKPAD_INCLUDE_DIR
|
||||
NAMES exception_handler.h minidump_descriptor.h
|
||||
PATHS ${INCLUDE_DIR_PATH}
|
||||
)
|
||||
|
||||
find_library(
|
||||
LIBBREAKPAD_LIBRARIES
|
||||
NAMES breakpad_client
|
||||
PATHS ${LIBRARIE_DIR_PATH}
|
||||
)
|
||||
22
sdk/cmake/modules/Findlibcurl.cmake
Normal file
22
sdk/cmake/modules/Findlibcurl.cmake
Normal file
@@ -0,0 +1,22 @@
|
||||
|
||||
|
||||
if ( _DEBUG )
|
||||
set( libcurl "curl_d" )
|
||||
else()
|
||||
set( libcurl "curl_r" )
|
||||
endif()
|
||||
|
||||
|
||||
message( status " using bundled ${libcurl}" )
|
||||
|
||||
find_path(
|
||||
LIBCURL_INCLUDE_DIR
|
||||
NAMES curl.h
|
||||
PATHS ${CMAKE_CURRENT_LIST_DIR}/../../../../common/cpp/libs/3rd/inc/curl
|
||||
)
|
||||
|
||||
find_library(
|
||||
CURL_LIBRARIE_DIR_PATH
|
||||
NAMES ${libcurl}
|
||||
PATHS ${CMAKE_CURRENT_LIST_DIR}/../../../../common/cpp/libs/3rd/bin
|
||||
)
|
||||
16
sdk/cmake/modules/Findlibev.cmake
Normal file
16
sdk/cmake/modules/Findlibev.cmake
Normal file
@@ -0,0 +1,16 @@
|
||||
message( status " using bundled Findlibev.cmake..." )
|
||||
|
||||
set( INCLUDE_DIR_PATH ${CMAKE_CURRENT_LIST_DIR}/../../../../common/cpp/libs/3rd/inc/libev/include )
|
||||
set( LIBRARIE_DIR_PATH ${CMAKE_CURRENT_LIST_DIR}/../../../../common/cpp/libs/3rd/bin )
|
||||
|
||||
find_path(
|
||||
LIBEV_INCLUDE_DIR
|
||||
NAMES event.h ev.h ev++.h
|
||||
PATHS ${INCLUDE_DIR_PATH}
|
||||
)
|
||||
|
||||
find_library(
|
||||
LIBEV_LIBRARIES
|
||||
NAMES libev.a
|
||||
PATHS ${LIBRARIE_DIR_PATH}
|
||||
)
|
||||
20
sdk/cmake/modules/Findliblua-5.1.cmake
Normal file
20
sdk/cmake/modules/Findliblua-5.1.cmake
Normal file
@@ -0,0 +1,20 @@
|
||||
if ( _DEBUG )
|
||||
set( liblua-5.1 "lua-5.1_d" )
|
||||
else()
|
||||
set( liblua-5.1 "lua-5.1_r" )
|
||||
endif()
|
||||
|
||||
message( status " using bundled ${liblua-5.1}..." )
|
||||
|
||||
find_path(
|
||||
LIBLUA-5.1_INCLUDE_DIR
|
||||
NAMES lualib.h lauxlib.h ldebug.h lmem.h lzio.h lvm.h lapi.h lstring.h lgc.h ldo.h lfunc.h llimits.h lua.h ltable.h lopcodes.h lcode.h lparser.h ltm.h luaconf.h lundump.h llex.h lobject.h lstate.h
|
||||
#NAMES *.h *.hpp
|
||||
PATHS ${CMAKE_CURRENT_LIST_DIR}/../../../sdk/lua-5.1/src
|
||||
)
|
||||
|
||||
find_library(
|
||||
LIBLUA-5.1_LIBRARIES
|
||||
NAMES ${liblua-5.1}
|
||||
PATHS ${CMAKE_CURRENT_LIST_DIR}/../../../libs/bin/
|
||||
)
|
||||
26
sdk/cmake/modules/Findlibmysqlclient.cmake
Normal file
26
sdk/cmake/modules/Findlibmysqlclient.cmake
Normal file
@@ -0,0 +1,26 @@
|
||||
message( status " using bundled Findlibmysqlclient.cmake..." )
|
||||
|
||||
if(CMAKE_SIZEOF_VOID_P EQUAL 8)
|
||||
set( INCLUDE_DIR_PATH ${CMAKE_CURRENT_LIST_DIR}/../../../sdk/mysql-5.2/include )
|
||||
set( LIBRARIE_DIR_PATH ${CMAKE_CURRENT_LIST_DIR}/../../../libs/bin/ )
|
||||
# set( INCLUDE_DIR_PATH /usr/include )
|
||||
# set( LIBRARIE_DIR_PATH /usr/lib64/mysql )
|
||||
else()
|
||||
set( INCLUDE_DIR_PATH ${CMAKE_CURRENT_LIST_DIR}/../../../sdk/mysql-5.2/include )
|
||||
set( LIBRARIE_DIR_PATH ${CMAKE_CURRENT_LIST_DIR}/../../../libs/bin/ )
|
||||
# set( INCLUDE_DIR_PATH /usr/include )
|
||||
# set( LIBRARIE_DIR_PATH /usr/lib/mysql )
|
||||
endif()
|
||||
|
||||
find_path(
|
||||
LIBMYSQLCLIENT_INCLUDE_DIR
|
||||
NAMES config-netware.h config-win.h errmsg.h libmysql.def m_ctype.h m_string.h my_alloc.h my_dbug.h my_getopt.h my_global.h my_list.h my_pthread.h mysql_com.h mysqld_ername.h mysqld_error.h mysql_embed.h mysql.h mysql_time.h mysql_version.h my_sys.h typelib.h base64.h decimal.h hash.h keycache.h lf.h my_aes.h my_alarm.h my_atomic.h my_attribute.h
|
||||
#NAMES *.h *.hpp
|
||||
PATHS ${INCLUDE_DIR_PATH}
|
||||
)
|
||||
|
||||
find_library(
|
||||
LIBMYSQLCLIENT_LIBRARIES
|
||||
NAMES mysqlclient
|
||||
PATHS ${LIBRARIE_DIR_PATH}
|
||||
)
|
||||
20
sdk/cmake/modules/Findlibservercommon.cmake
Normal file
20
sdk/cmake/modules/Findlibservercommon.cmake
Normal file
@@ -0,0 +1,20 @@
|
||||
if ( _DEBUG )
|
||||
set( libservercommon "servercommon_d" )
|
||||
else()
|
||||
set( libservercommon "servercommon_r" )
|
||||
endif()
|
||||
|
||||
message( status " using bundled ${libservercommon}..." )
|
||||
|
||||
find_path(
|
||||
LIBSERVERCOMMON_INCLUDE_DIR
|
||||
NAMES AchieveData.h ActorCacheDef.h ActorDbData.h ActorOfflineMsg.h CommonDef.h Consignment.h DBProto.h Fuben.h GemItemProperty.h GuildDb.h HeroData.h InterAction.h InterServerComm.h Msg.h PetData.h ServerDef.h SkillDbData.h UserItem.h CustomGateManager.h CustomGlobalSession.h CustomJXClientSocket.h CustomJXServerClientSocket.h CustomServerClientSocketEx.h CustomServerGate.h CustomServerGateUser.h CustomSessionClient.h Encrypt.h FileLogger.h GateProto.h HandleMgr.h HandleStat.h JXAbsGameMap.h LogSender.h LogType.h MapSearchNode.h mjEdcode.h mjProto.h NetworkDataHandler.h SqlHelper.h stlastar.h
|
||||
#NAMES *.h *.hpp
|
||||
PATHS ${CMAKE_CURRENT_LIST_DIR}/../../../sdk/commonLib/include ${CMAKE_CURRENT_LIST_DIR}/../../../sdk/commonLib/def
|
||||
)
|
||||
|
||||
find_library(
|
||||
LIBSERVERCOMMON_LIBRARIES
|
||||
NAMES ${libservercommon}
|
||||
PATHS ${CMAKE_CURRENT_LIST_DIR}/../../../libs
|
||||
)
|
||||
21
sdk/cmake/modules/Findlibsrv.cmake
Normal file
21
sdk/cmake/modules/Findlibsrv.cmake
Normal file
@@ -0,0 +1,21 @@
|
||||
if ( _DEBUG )
|
||||
set( libsrv "srv_d" )
|
||||
else()
|
||||
set( libsrv "srv_r" )
|
||||
endif()
|
||||
|
||||
message( status " using bundled ${libsrv}..." )
|
||||
|
||||
find_path(
|
||||
LIBSRV_INCLUDE_DIR
|
||||
NAMES AdvanceAstar.h AMClient.h AppItnMsg.h BufferAllocatorEx.h BufferAllocator.h CBPTypes.h CFilter.h CLVariant.h cp.h CRC16.h CustomClientSocket.h CustomFileDB.h CustomHashTable.h CustomLuaClass.h CustomLuaConfig.h CustomLuaPreProcess.h CustomLuaProfiler.h CustomLuaScript.h CustomServerClientSocket.h CustomServerSocket.h CustomSortList.h CustomWorkSocket.h DataPacket.hpp DataPacketReader.hpp DefExceptHander.h EDPass.h FDOP.h FileDB_test.h LangTextSection.h LuaCLVariant.h LuaLangTextSection.h LuaToBP.h LuaVariantClass.h MiniDateTime.h NameAllocator.h ObjectAllocator.hpp ObjectAllocStat.hpp PathThreadLocale.h SendPackPool.h ShareUtil.h SingleObjectAllocator.hpp Singleton.hpp SQL.h SQLiteDB.h StackWalker.h TimeCall.h TimeStat.h utf8_output.h VirturalMap.h WinService.h EDCode.h
|
||||
|
||||
#NAMES *.h *.hpp
|
||||
PATHS ${CMAKE_CURRENT_LIST_DIR}/../../../sdk/srvlib/include
|
||||
)
|
||||
|
||||
find_library(
|
||||
LIBSRV_LIBRARIES
|
||||
NAMES ${libsrv}
|
||||
PATHS ${CMAKE_CURRENT_LIST_DIR}/../../../libs
|
||||
)
|
||||
15
sdk/cmake/modules/Findlibtcmalloc_minimal.cmake
Normal file
15
sdk/cmake/modules/Findlibtcmalloc_minimal.cmake
Normal file
@@ -0,0 +1,15 @@
|
||||
|
||||
message( status " using bundled Findlibtcmalloc_minimal.cmake..." )
|
||||
|
||||
#if ( _DEBUG )
|
||||
# set( libtcmalloc "libtcmalloc_minimal.so" )
|
||||
#else()
|
||||
set( libtcmalloc "libtcmalloc_minimal.a" )
|
||||
#endif()
|
||||
set( LIBRARIE_DIR_PATH ${CMAKE_CURRENT_LIST_DIR}/../../../libs/bin/ )
|
||||
|
||||
find_library(
|
||||
LIBTCMALLOC_MINIMAL_LIBRARIES
|
||||
NAMES ${libtcmalloc}
|
||||
PATHS ${LIBRARIE_DIR_PATH}
|
||||
)
|
||||
20
sdk/cmake/modules/Findlibtolua++.cmake
Normal file
20
sdk/cmake/modules/Findlibtolua++.cmake
Normal file
@@ -0,0 +1,20 @@
|
||||
if ( _DEBUG )
|
||||
set( libtolua++ "tolua++_d" )
|
||||
else()
|
||||
set( libtolua++ "tolua++_r" )
|
||||
endif()
|
||||
|
||||
message( status " using bundled ${libtolua++}..." )
|
||||
|
||||
find_path(
|
||||
LIBTOLUA++_INCLUDE_DIR
|
||||
NAMES toluabind.h tolua_event.h tolua++.h
|
||||
#NAMES *.h *.hpp
|
||||
PATHS ${CMAKE_CURRENT_LIST_DIR}/../../../sdk/tolua++/src
|
||||
)
|
||||
|
||||
find_library(
|
||||
LIBTOLUA++_LIBRARIES
|
||||
NAMES ${libtolua++}
|
||||
PATHS ${CMAKE_CURRENT_LIST_DIR}/../../../libs/bin/
|
||||
)
|
||||
20
sdk/cmake/modules/Findlibwylib.cmake
Normal file
20
sdk/cmake/modules/Findlibwylib.cmake
Normal file
@@ -0,0 +1,20 @@
|
||||
#if ( _DEBUG )
|
||||
# set( libwylib "wylib_d" )
|
||||
#else()
|
||||
# set( libwylib "wylib_r" )
|
||||
#endif()
|
||||
#
|
||||
#message( status " using bundled ${libwylib}..." )
|
||||
#
|
||||
#find_path(
|
||||
# LIBWYLIB_INCLUDE_DIR
|
||||
# NAMES aes.h AnsiString.hpp _ast.h AtomOPDef.h AtomOP.h base64.h bzhash.h ClassedWnd.h crc.h CustomSocket.h fastFT.h LinkedList.h List.h Lock.h LockList.h MBCSDef.h md5.h _memchk.h NamedPipe.h NPComm.h ObjectCounter.h _osdef.h Platform.h PrintMsg.h Property.h QueueList.h RefClass.hpp RefString.hpp seh.h SocketConfig.h Stream.h SysApi.h Thread.h Tick.h TypeDef.h UCSDef.h WideString.hpp wrand.h wyString.h ZStream.h
|
||||
# #NAMES *.h *.hpp
|
||||
# PATHS ${CMAKE_CURRENT_LIST_DIR}/../../../../common/cpp/libs/src/wylib/include/ ${CMAKE_CURRENT_LIST_DIR}/../../../../common/cpp/libs/src/wylib/include/3thpart/
|
||||
#)
|
||||
#
|
||||
#find_library(
|
||||
# LIBWYLIB_LIBRARIES
|
||||
# NAMES ${libwylib}
|
||||
# PATHS ${CMAKE_CURRENT_LIST_DIR}/../../../../common/cpp/libs/3rd/bin
|
||||
#)
|
||||
20
sdk/cmake/modules/Findlibzlib1.1.4.cmake
Normal file
20
sdk/cmake/modules/Findlibzlib1.1.4.cmake
Normal file
@@ -0,0 +1,20 @@
|
||||
if ( _DEBUG )
|
||||
set( libzlib1.1.4 "zlib1.1.4_d" )
|
||||
else()
|
||||
set( libzlib1.1.4 "zlib1.1.4_r" )
|
||||
endif()
|
||||
|
||||
message( status " using bundled ${libzlib1.1.4}..." )
|
||||
|
||||
find_path(
|
||||
LIBZLIB1.1.4_INCLUDE_DIR
|
||||
NAMES zlib.h inffast.h infblock.h deflate.h zconf.h inftrees.h infcodes.h trees.h inffixed.h zutil.h infutil.h
|
||||
#NAMES *.h *.hpp
|
||||
PATHS ${CMAKE_CURRENT_LIST_DIR}/../../../sdk/zlib\ 1.1.4/src
|
||||
)
|
||||
|
||||
find_library(
|
||||
LIBZLIB1.1.4_LIBRARIES
|
||||
NAMES ${libzlib1.1.4}
|
||||
PATHS ${CMAKE_CURRENT_LIST_DIR}/../../../libs/bin/
|
||||
)
|
||||
Reference in New Issue
Block a user