mirror of
https://github.com/fumiama/simple-dict.git
synced 2026-06-09 20:50:31 +08:00
20 lines
555 B
CMake
20 lines
555 B
CMake
cmake_minimum_required(VERSION 3.0.0)
|
|
project(simple-dict-server)
|
|
|
|
add_definitions(-DLISTEN_ON_IPV6)
|
|
|
|
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(simple-dict-server dict spb pthread)
|
|
target_link_libraries(simple-dict-client pthread)
|
|
target_link_libraries(migrate spb)
|
|
target_link_libraries(cfgwriter spb)
|