代码拉取完成,页面将自动刷新
同步操作将从 kytooooo/NoahGameFrame 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
set_property(GLOBAL PROPERTY USE_FOLDERS On)
option(BUILD_TOOLS_ONLY "help string describing option")
cmake_minimum_required(VERSION 3.1)
macro(remove_file arg_list file_remove)
file(GLOB RemoveItems_Cpp ${file_remove})
if (RemoveItems_Cpp)
list(REMOVE_ITEM ${arg_list} ${RemoveItems_Cpp})
endif()
endmacro(remove_file)
macro(link_NFSDK projName)
if(UNIX)
add_dependencies(${projName} NFNetPlugin NFCore NFMessageDefine)
target_link_libraries(${projName} NFCore protobuf NFMessageDefine NFNetPlugin event event_core)
else()
add_dependencies(${projName} NFNetPlugin NFCore NFMessageDefine)
target_link_libraries(${projName} NFCore)
endif()
endmacro(link_NFSDK)
macro(add_post_cmd_win strProjectName destDir ext dbgSuffix)
endmacro()
macro(add_post_cmd_linux strProjectName destDir ext dbgSuffix dllPrefix)
endmacro()
project(NoahFrame)
#OSX上强制生成so后缀的动态库而不是dylib后缀动态库
if (APPLE)
SET(CMAKE_SHARED_LIBRARY_SUFFIX ".so")
endif(APPLE)
set(SolutionDir ${PROJECT_SOURCE_DIR})
if (CMAKE_SYSTEM_NAME MATCHES "Linux" OR CMAKE_SYSTEM_NAME MATCHES "Darwin")
if( CMAKE_BUILD_TYPE STREQUAL "Debug" )
set(NFOutPutDir ${PROJECT_SOURCE_DIR}/_Out/Debug)
else()
set(NFOutPutDir ${PROJECT_SOURCE_DIR}/_Out/Release)
endif()
else()
set(NFOutPutDir ${PROJECT_SOURCE_DIR}/_Out/)
endif()
message("NFOutPutDir:${NFOutPutDir}")
# message(STATUS "SolutionDir=" ${SolutionDir})
include_directories(
${SolutionDir}
${SolutionDir}/Dependencies/
${SolutionDir}/Dependencies/Theron/Include/
${SolutionDir}/Dependencies/Theron/Include/External/
${SolutionDir}/Dependencies/protobuf/
${SolutionDir}/Dependencies/protobuf/src/
${SolutionDir}/Dependencies/libevent/
${SolutionDir}/Dependencies/libevent/include/
${SolutionDir}/Dependencies/libevent/compat/
${SolutionDir}/Dependencies/lua/
${SolutionDir}/Dependencies/asio/
${SolutionDir}/Dependencies/websocketpp/
)
#message("Build Type:"${CMAKE_BUILD_TYPE} ${CMAKE_CXX_FLAGS})
if(UNIX)
if( CMAKE_BUILD_TYPE STREQUAL "Debug" )
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -O0 -Wall -g -ggdb -DDEBUG -fPIC")
else()
set(CMAKE_BUILD_TYPE "Release")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC -std=c++11 -O3 -Wall")
endif()
set(LDFLAGS "$ENV{LDFLAGS} -stdlib=libc++")
#MAC不需要这一行
if (NOT APPLE)
add_definitions(-std=c++11)
endif()
else()
SET ( CMAKE_CXX_FLAGS "-D_X64 -D_WINDOWS /EHsc" )
include_directories(${SolutionDir}/Dependencies/libevent/WIN32-Code/)
endif()
if(UNIX)
if( CMAKE_BUILD_TYPE STREQUAL "Debug" )
set(DependenciesLibPath ${SolutionDir}/Dependencies/lib ${SolutionDir}/_Out/Debug/ ${SolutionDir}/Dependencies/lib/Debug)
else()
set(DependenciesLibPath ${SolutionDir}/Dependencies/lib ${SolutionDir}/_Out/Release/ ${SolutionDir}/Dependencies/lib/Release)
endif()
else()
set(DependenciesLibPath ${SolutionDir}/Dependencies/lib ${SolutionDir}/_Out/)
endif()
link_directories(${DependenciesLibPath})
if(${BUILD_TOOLS_ONLY} STREQUAL "ON")
message("Build Tools Only")
add_subdirectory(NFTools)
else()
message("Build All")
add_subdirectory(NFTools)
add_subdirectory(Dependencies)
add_subdirectory(NFComm)
add_subdirectory(NFServer)
add_subdirectory(NFMidWare)
add_subdirectory(Tutorial)
endif()
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。