Browse Source

auto commit

tags/v1.2
yitter 4 years ago
parent
commit
5e6116ef38
3 changed files with 4 additions and 3 deletions
  1. +2
    -1
      C/source/CMakeLists.txt
  2. +1
    -1
      C/source/idgen/common.h
  3. +1
    -1
      C/source/main.c

+ 2
- 1
C/source/CMakeLists.txt View File

@@ -20,8 +20,9 @@ add_subdirectory(idgen)
##编译执行文件
set(LIB_SRC YitIdHelper.h YitIdHelper.c)
add_library(YitIdHelper ${LIB_SRC})

add_executable(YitIdGen main.c)
target_link_libraries(YitIdHelper idgen)
target_link_libraries(YitIdGen YitIdHelper)
target_link_libraries(YitIdGen idgen)



+ 1
- 1
C/source/idgen/common.h View File

@@ -8,6 +8,6 @@
#define TAP_DLLEXPORT __declspec(dllexport)
#else
#define TAP_CDECL
#define TAP_DLLEXPORT __declspec(dllexport)
#define TAP_DLLEXPORT
#endif

+ 1
- 1
C/source/main.c View File

@@ -16,7 +16,7 @@
const int GenIdCount = 50000;
const bool multiThread = false;
const bool multiThread = true;
const int threadCount = 50;
const int method = 1;


Loading…
Cancel
Save