diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 50878fc..5b05e6d 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -75,6 +75,7 @@ add_executable(ss_tunnel ${SOURCE_FILES_TUNNEL}) add_executable(ss_server ${SOURCE_FILES_SERVER}) add_executable(ss_manager ${SOURCE_FILES_MANAGER}) add_executable(ss_redir ${SOURCE_FILES_REDIR}) +add_library(libshadowsocks-libev ${SOURCE_FILES_LOCAL}) set_target_properties(ss_local PROPERTIES COMPILE_DEFINITIONS MODULE_LOCAL @@ -91,6 +92,10 @@ set_target_properties(ss_manager PROPERTIES set_target_properties(ss_redir PROPERTIES COMPILE_DEFINITIONS MODULE_REDIR ) +target_compile_definitions(libshadowsocks-libev + PRIVATE MODULE_LOCAL LIB_ONLY + ) +set_target_properties(libshadowsocks-libev PROPERTIES SUFFIX ".la") set (ss_lib_common ev