1
This commit is contained in:
parent
08aa23d221
commit
04ce2860f9
@ -1,7 +1,5 @@
|
||||
cmake_minimum_required(VERSION 3.28.2)
|
||||
project(mymangosd)
|
||||
|
||||
set(CMAKE_CXX_STANDARD 20)
|
||||
cmake_minimum_required(VERSION 2.8)
|
||||
|
||||
if (${RELEASE})
|
||||
set(CMAKE_BUILD_TYPE "Release")
|
||||
@ -11,16 +9,54 @@ else()
|
||||
message("debug mode")
|
||||
endif()
|
||||
|
||||
set(CMAKE_CXX_FLAGS_DEBUG "-std=c++20 -fmodules-ts")
|
||||
set(CMAKE_CXX_FLAGS_RELEASE "-Wall -g -std=gnu++1z -DNDEBUG -DDT_VIRTUAL_QUERYFILTER")
|
||||
if (${ASAN})
|
||||
set(CMAKE_CXX_FLAGS_DEBUG "-Wall -g -std=gnu++1z -DMYDEBUG -DDT_VIRTUAL_QUERYFILTER -fsanitize=address -fno-omit-frame-pointer")
|
||||
else()
|
||||
set(CMAKE_CXX_FLAGS_DEBUG "-Wall -g -std=gnu++1z -DMYDEBUG -DDT_VIRTUAL_QUERYFILTER")
|
||||
endif()
|
||||
|
||||
include_directories(
|
||||
AFTER
|
||||
../../third_party/a8
|
||||
../../third_party/f8
|
||||
/usr/include/mysql
|
||||
/usr/include/jsoncpp
|
||||
/usr/include/hiredis
|
||||
/usr/include/glm
|
||||
../../third_party
|
||||
../../third_party/behaviac/inc
|
||||
../../third_party/recastnavigation/Recast/Include
|
||||
../../third_party/recastnavigation/Detour/Include
|
||||
../../third_party/recastnavigation/DetourTileCache/Include
|
||||
behaviac_generated/types
|
||||
behaviac_generated/types/internal
|
||||
.
|
||||
)
|
||||
|
||||
link_directories(
|
||||
../../third_party/behaviac/lib/${LIB_DIR}
|
||||
/usr/lib64/mysql
|
||||
/usr/local/lib
|
||||
)
|
||||
|
||||
aux_source_directory(../../third_party/a8/a8
|
||||
SRC_LIST
|
||||
)
|
||||
|
||||
aux_source_directory(../../third_party/f8/f8
|
||||
SRC_LIST
|
||||
)
|
||||
|
||||
aux_source_directory(../../third_party/recastnavigation/Recast/Source
|
||||
SRC_LIST
|
||||
)
|
||||
|
||||
aux_source_directory(../../third_party/recastnavigation/Detour/Source
|
||||
SRC_LIST
|
||||
)
|
||||
|
||||
aux_source_directory(../../third_party/recastnavigation/DetourTileCache/Source
|
||||
SRC_LIST
|
||||
)
|
||||
|
||||
aux_source_directory(.
|
||||
@ -38,15 +74,31 @@ add_executable(
|
||||
target_link_libraries(
|
||||
mymangosd
|
||||
pthread
|
||||
mysqlclient
|
||||
protobuf
|
||||
rt
|
||||
dl
|
||||
util
|
||||
crypto
|
||||
ssl
|
||||
jsoncpp
|
||||
curl
|
||||
hiredis
|
||||
tinyxml2
|
||||
backtrace
|
||||
)
|
||||
|
||||
if (CMAKE_BUILD_TYPE STREQUAL "Debug")
|
||||
target_link_libraries(
|
||||
mymangosd
|
||||
#behaviac_gcc_release
|
||||
boost_stacktrace_backtrace
|
||||
boost_stacktrace_addr2line
|
||||
)
|
||||
else()
|
||||
target_link_libraries(
|
||||
mymangosd
|
||||
tcmalloc
|
||||
#behaviac_gcc_release
|
||||
)
|
||||
endif()
|
||||
|
@ -1,33 +1,4 @@
|
||||
import <iostream>;
|
||||
import <vector>;
|
||||
import <set>;
|
||||
import <map>;
|
||||
|
||||
import gemfield;
|
||||
import cs;
|
||||
|
||||
#include <memory>
|
||||
|
||||
void test(std::vector<int>& a)
|
||||
{
|
||||
for (auto& n : a) {
|
||||
std::cout << "I am Gemfield." << n << std::endl;
|
||||
n += 100;
|
||||
}
|
||||
}
|
||||
|
||||
int main(int argc, char* argv[])
|
||||
{
|
||||
std::vector<int> a;
|
||||
a.push_back(1);
|
||||
a.push_back(2);
|
||||
a.push_back(3);
|
||||
a.push_back(4);
|
||||
a.push_back(100);
|
||||
test(a);
|
||||
whoami(a);
|
||||
std::shared_ptr<cs::CMMove> msg;
|
||||
cs::CMMove msg1;
|
||||
msg1.set_seq(100);
|
||||
return 0;
|
||||
}
|
||||
|
2
third_party/f8/f8/btmgr.cc
vendored
2
third_party/f8/f8/btmgr.cc
vendored
@ -2,6 +2,7 @@
|
||||
|
||||
#include <f8/f8.h>
|
||||
|
||||
#if 0
|
||||
#include "btmgr.h"
|
||||
|
||||
namespace f8
|
||||
@ -64,3 +65,4 @@ namespace f8
|
||||
}
|
||||
|
||||
}
|
||||
#endif
|
||||
|
2
third_party/f8/f8/btmgr.h
vendored
2
third_party/f8/f8/btmgr.h
vendored
@ -1,5 +1,6 @@
|
||||
#pragma once
|
||||
|
||||
#if 0
|
||||
#include <a8/singleton.h>
|
||||
|
||||
#include "behaviac/behaviac.h"
|
||||
@ -29,3 +30,4 @@ namespace f8
|
||||
void BtDestory(behaviac::Agent* agent);
|
||||
};
|
||||
}
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user