1
0
mirror of https://github.com/fumiama/simple-dict.git synced 2026-06-07 11:10:24 +08:00
Files
simple-dict/CMakeLists.txt
2021-08-31 13:26:50 +08:00

31 lines
962 B
CMake

cmake_minimum_required(VERSION 2.6)
project(simple-dict-server C)
SET(CMAKE_BUILD_TYPE "Release")
add_definitions(-DLISTEN_ON_IPV6)
IF(CMAKE_SIZEOF_VOID_P EQUAL 8)
add_definitions("-DCPUBIT64")
ELSE()
add_definitions("-DCPUBIT32")
ENDIF()
# include_directories("/usr/local/include")
# link_directories("/usr/local/lib")
add_library(dict STATIC dict.c)
add_executable(simple-dict-server server.c)
add_executable(simple-dict-client client.c)
add_executable(migrate migrate.c)
add_executable(cfgwriter cfgwriter.c)
target_link_libraries(dict smd5)
target_link_libraries(simple-dict-server dict spb pthread)
target_link_libraries(simple-dict-client pthread)
target_link_libraries(migrate spb)
target_link_libraries(cfgwriter spb)
INSTALL(TARGETS simple-dict-server RUNTIME DESTINATION bin)
#INSTALL(TARGETS simple-dict-client RUNTIME DESTINATION bin)
#INSTALL(TARGETS migrate RUNTIME DESTINATION bin)
#INSTALL(TARGETS cfgwriter RUNTIME DESTINATION bin)