1
This commit is contained in:
parent
cf58ba53d3
commit
57a279386b
@ -10,6 +10,14 @@ else()
|
|||||||
set(CMAKE_BUILD_TYPE "Debug")
|
set(CMAKE_BUILD_TYPE "Debug")
|
||||||
message("debug mode")
|
message("debug mode")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if (${LIB_DIR})
|
||||||
|
message(LIB_DIR: ${LIB_DIR})
|
||||||
|
else()
|
||||||
|
set(LIB_DIR )
|
||||||
|
message(LIB_DIR: ${LIB_DIR} )
|
||||||
|
endif()
|
||||||
|
|
||||||
set(CMAKE_CXX_FLAGS_RELEASE "-O3 -Wall -g -std=gnu++11 -DNDEBUG -DGAME_ID=${GAME_ID} ")
|
set(CMAKE_CXX_FLAGS_RELEASE "-O3 -Wall -g -std=gnu++11 -DNDEBUG -DGAME_ID=${GAME_ID} ")
|
||||||
set(CMAKE_CXX_FLAGS_DEBUG "-Wall -g -std=gnu++11 -DDEBUG -DGAME_ID=${GAME_ID} ")
|
set(CMAKE_CXX_FLAGS_DEBUG "-Wall -g -std=gnu++11 -DDEBUG -DGAME_ID=${GAME_ID} ")
|
||||||
|
|
||||||
@ -32,7 +40,7 @@ include_directories(
|
|||||||
link_directories(
|
link_directories(
|
||||||
/usr/lib64/mysql
|
/usr/lib64/mysql
|
||||||
/usr/local/lib
|
/usr/local/lib
|
||||||
../../third_party/behaviac/lib
|
../../third_party/behaviac/lib/${LIB_DIR}
|
||||||
)
|
)
|
||||||
|
|
||||||
aux_source_directory(../../third_party/a8engine/a8
|
aux_source_directory(../../third_party/a8engine/a8
|
||||||
@ -101,7 +109,7 @@ if (CMAKE_BUILD_TYPE STREQUAL "Debug")
|
|||||||
hiredis
|
hiredis
|
||||||
tinyxml2
|
tinyxml2
|
||||||
tcmalloc
|
tcmalloc
|
||||||
behaviac_gcc_debug
|
behaviac_gcc_release
|
||||||
)
|
)
|
||||||
else()
|
else()
|
||||||
target_link_libraries(
|
target_link_libraries(
|
||||||
|
@ -10,6 +10,14 @@ else()
|
|||||||
set(CMAKE_BUILD_TYPE "Debug")
|
set(CMAKE_BUILD_TYPE "Debug")
|
||||||
message("debug mode")
|
message("debug mode")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if (${LIB_DIR})
|
||||||
|
message(LIB_DIR: ${LIB_DIR})
|
||||||
|
else()
|
||||||
|
set(LIB_DIR )
|
||||||
|
message(LIB_DIR: ${LIB_DIR} )
|
||||||
|
endif()
|
||||||
|
|
||||||
set(CMAKE_CXX_FLAGS_RELEASE "-O3 -Wall -g -std=gnu++11 -DNDEBUG -DGAME_ID=${GAME_ID} ")
|
set(CMAKE_CXX_FLAGS_RELEASE "-O3 -Wall -g -std=gnu++11 -DNDEBUG -DGAME_ID=${GAME_ID} ")
|
||||||
set(CMAKE_CXX_FLAGS_DEBUG "-Wall -g -std=gnu++11 -DDEBUG -DGAME_ID=${GAME_ID} ")
|
set(CMAKE_CXX_FLAGS_DEBUG "-Wall -g -std=gnu++11 -DDEBUG -DGAME_ID=${GAME_ID} ")
|
||||||
|
|
||||||
@ -32,7 +40,7 @@ include_directories(
|
|||||||
link_directories(
|
link_directories(
|
||||||
/usr/lib64/mysql
|
/usr/lib64/mysql
|
||||||
/usr/local/lib
|
/usr/local/lib
|
||||||
../../third_party/behaviac/lib
|
../../third_party/behaviac/lib/${LIB_DIR}
|
||||||
)
|
)
|
||||||
|
|
||||||
aux_source_directory(../../third_party/a8engine/a8
|
aux_source_directory(../../third_party/a8engine/a8
|
||||||
@ -102,7 +110,7 @@ if (CMAKE_BUILD_TYPE STREQUAL "Debug")
|
|||||||
hiredis
|
hiredis
|
||||||
tinyxml2
|
tinyxml2
|
||||||
# tcmalloc
|
# tcmalloc
|
||||||
behaviac_gcc_debug
|
behaviac_gcc_release
|
||||||
)
|
)
|
||||||
else()
|
else()
|
||||||
target_link_libraries(
|
target_link_libraries(
|
||||||
|
@ -10,6 +10,14 @@ else()
|
|||||||
set(CMAKE_BUILD_TYPE "Debug")
|
set(CMAKE_BUILD_TYPE "Debug")
|
||||||
message("debug mode")
|
message("debug mode")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if (${LIB_DIR})
|
||||||
|
message(LIB_DIR: ${LIB_DIR})
|
||||||
|
else()
|
||||||
|
set(LIB_DIR )
|
||||||
|
message(LIB_DIR: ${LIB_DIR} )
|
||||||
|
endif()
|
||||||
|
|
||||||
set(CMAKE_CXX_FLAGS_RELEASE "-O3 -Wall -g -std=gnu++11 -DNDEBUG -DGAME_ID=${GAME_ID} ")
|
set(CMAKE_CXX_FLAGS_RELEASE "-O3 -Wall -g -std=gnu++11 -DNDEBUG -DGAME_ID=${GAME_ID} ")
|
||||||
set(CMAKE_CXX_FLAGS_DEBUG "-Wall -g -std=gnu++11 -DDEBUG -DGAME_ID=${GAME_ID} ")
|
set(CMAKE_CXX_FLAGS_DEBUG "-Wall -g -std=gnu++11 -DDEBUG -DGAME_ID=${GAME_ID} ")
|
||||||
|
|
||||||
@ -32,7 +40,7 @@ include_directories(
|
|||||||
link_directories(
|
link_directories(
|
||||||
/usr/lib64/mysql
|
/usr/lib64/mysql
|
||||||
/usr/local/lib
|
/usr/local/lib
|
||||||
../../third_party/behaviac/lib
|
../../third_party/behaviac/lib/${LIB_DIR}
|
||||||
)
|
)
|
||||||
|
|
||||||
aux_source_directory(../../third_party/a8engine/a8
|
aux_source_directory(../../third_party/a8engine/a8
|
||||||
@ -101,7 +109,7 @@ if (CMAKE_BUILD_TYPE STREQUAL "Debug")
|
|||||||
hiredis
|
hiredis
|
||||||
tinyxml2
|
tinyxml2
|
||||||
tcmalloc
|
tcmalloc
|
||||||
behaviac_gcc_debug
|
behaviac_gcc_release
|
||||||
)
|
)
|
||||||
else()
|
else()
|
||||||
target_link_libraries(
|
target_link_libraries(
|
||||||
|
@ -10,6 +10,14 @@ else()
|
|||||||
set(CMAKE_BUILD_TYPE "Debug")
|
set(CMAKE_BUILD_TYPE "Debug")
|
||||||
message("debug mode")
|
message("debug mode")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if (${LIB_DIR})
|
||||||
|
message(LIB_DIR: ${LIB_DIR})
|
||||||
|
else()
|
||||||
|
set(LIB_DIR )
|
||||||
|
message(LIB_DIR: ${LIB_DIR} )
|
||||||
|
endif()
|
||||||
|
|
||||||
set(CMAKE_CXX_FLAGS_RELEASE "-O3 -Wall -g -std=gnu++11 -DNDEBUG -DGAME_ID=${GAME_ID} ")
|
set(CMAKE_CXX_FLAGS_RELEASE "-O3 -Wall -g -std=gnu++11 -DNDEBUG -DGAME_ID=${GAME_ID} ")
|
||||||
set(CMAKE_CXX_FLAGS_DEBUG "-Wall -g -std=gnu++11 -DDEBUG -DGAME_ID=${GAME_ID} ")
|
set(CMAKE_CXX_FLAGS_DEBUG "-Wall -g -std=gnu++11 -DDEBUG -DGAME_ID=${GAME_ID} ")
|
||||||
|
|
||||||
@ -32,7 +40,7 @@ include_directories(
|
|||||||
link_directories(
|
link_directories(
|
||||||
/usr/lib64/mysql
|
/usr/lib64/mysql
|
||||||
/usr/local/lib
|
/usr/local/lib
|
||||||
../../third_party/behaviac/lib
|
../../third_party/behaviac/lib/${LIB_DIR}
|
||||||
)
|
)
|
||||||
|
|
||||||
aux_source_directory(../../third_party/a8engine/a8
|
aux_source_directory(../../third_party/a8engine/a8
|
||||||
@ -102,7 +110,7 @@ if (CMAKE_BUILD_TYPE STREQUAL "Debug")
|
|||||||
curl
|
curl
|
||||||
hiredis
|
hiredis
|
||||||
tinyxml2
|
tinyxml2
|
||||||
behaviac_gcc_debug
|
behaviac_gcc_release
|
||||||
)
|
)
|
||||||
else()
|
else()
|
||||||
target_link_libraries(
|
target_link_libraries(
|
||||||
|
@ -10,6 +10,14 @@ else()
|
|||||||
set(CMAKE_BUILD_TYPE "Debug")
|
set(CMAKE_BUILD_TYPE "Debug")
|
||||||
message("debug mode")
|
message("debug mode")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if (${LIB_DIR})
|
||||||
|
message(LIB_DIR: ${LIB_DIR})
|
||||||
|
else()
|
||||||
|
set(LIB_DIR )
|
||||||
|
message(LIB_DIR: ${LIB_DIR} )
|
||||||
|
endif()
|
||||||
|
|
||||||
set(CMAKE_CXX_FLAGS_RELEASE "-O3 -Wall -g -std=gnu++11 -DNDEBUG -DGAME_ID=${GAME_ID} ")
|
set(CMAKE_CXX_FLAGS_RELEASE "-O3 -Wall -g -std=gnu++11 -DNDEBUG -DGAME_ID=${GAME_ID} ")
|
||||||
set(CMAKE_CXX_FLAGS_DEBUG "-Wall -g -std=gnu++11 -DDEBUG -DGAME_ID=${GAME_ID} ")
|
set(CMAKE_CXX_FLAGS_DEBUG "-Wall -g -std=gnu++11 -DDEBUG -DGAME_ID=${GAME_ID} ")
|
||||||
|
|
||||||
@ -32,7 +40,7 @@ include_directories(
|
|||||||
link_directories(
|
link_directories(
|
||||||
/usr/lib64/mysql
|
/usr/lib64/mysql
|
||||||
/usr/local/lib
|
/usr/local/lib
|
||||||
../../third_party/behaviac/lib
|
../../third_party/behaviac/lib/${LIB_DIR}
|
||||||
)
|
)
|
||||||
|
|
||||||
aux_source_directory(../../third_party/a8engine/a8
|
aux_source_directory(../../third_party/a8engine/a8
|
||||||
@ -101,7 +109,7 @@ if (CMAKE_BUILD_TYPE STREQUAL "Debug")
|
|||||||
hiredis
|
hiredis
|
||||||
tinyxml2
|
tinyxml2
|
||||||
tcmalloc
|
tcmalloc
|
||||||
behaviac_gcc_debug
|
behaviac_gcc_release
|
||||||
)
|
)
|
||||||
else()
|
else()
|
||||||
target_link_libraries(
|
target_link_libraries(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user