mirror of
https://github.com/fumiama/simple-dict.git
synced 2026-06-27 07:20:25 +08:00
add thread pool & optimize defines
This commit is contained in:
@@ -10,6 +10,31 @@ ELSE()
|
||||
add_definitions("-DCPUBIT32")
|
||||
ENDIF()
|
||||
|
||||
if($ENV{DICTKEYSZ})
|
||||
message("custom dict key size: $ENV{DICTKEYSZ}")
|
||||
add_definitions("-DDICTKEYSZ=$ENV{DICTKEYSZ}")
|
||||
endif()
|
||||
if($ENV{DICTDATSZ})
|
||||
message("custom dict data size: $ENV{DICTDATSZ}")
|
||||
add_definitions("-DDICTDATSZ=$ENV{DICTDATSZ}")
|
||||
endif()
|
||||
if($ENV{CRYPTO_SUMTABLE})
|
||||
message("custom suntable: $ENV{CRYPTO_SUMTABLE}")
|
||||
add_definitions("-DCRYPTO_SUMTABLE=$ENV{CRYPTO_SUMTABLE}")
|
||||
endif()
|
||||
if($ENV{THREADCNT})
|
||||
message("custom suntable: $ENV{THREADCNT}")
|
||||
add_definitions("-DTHREADCNT=$ENV{THREADCNT}")
|
||||
endif()
|
||||
if($ENV{MAXWAITSEC})
|
||||
message("custom suntable: $ENV{MAXWAITSEC}")
|
||||
add_definitions("-DMAXWAITSEC=$ENV{MAXWAITSEC}")
|
||||
endif()
|
||||
if($ENV{DICTPOOLBIT})
|
||||
message("custom suntable: $ENV{DICTPOOLBIT}")
|
||||
add_definitions("-DDICTPOOLBIT=$ENV{DICTPOOLBIT}")
|
||||
endif()
|
||||
|
||||
include_directories("/usr/local/include")
|
||||
link_directories("/usr/local/lib")
|
||||
|
||||
@@ -32,4 +57,4 @@ target_link_libraries(cfgwriter libspb.a)
|
||||
|
||||
INSTALL(TARGETS simple-dict-server RUNTIME DESTINATION bin)
|
||||
#INSTALL(TARGETS simple-dict-client RUNTIME DESTINATION bin)
|
||||
#INSTALL(TARGETS cfgwriter RUNTIME DESTINATION bin)
|
||||
#INSTALL(TARGETS cfgwriter RUNTIME DESTINATION bin)
|
||||
|
||||
Reference in New Issue
Block a user