Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

37 lines (27 sloc) 1.261 kb
project(rl-proxy)
cmake_minimum_required(VERSION 2.8)
add_subdirectory(libten)
include(${CMAKE_CURRENT_SOURCE_DIR}/libten/cmake/ten.cmake)
include(${CMAKE_CURRENT_SOURCE_DIR}/libten/cmake/version.cmake)
add_executable(rl-proxy rl-proxy.cc)
target_link_libraries(rl-proxy ten boost_program_options jansson boost_regex)
add_executable(rl-keygen rl-keygen.cc)
target_link_libraries(rl-keygen ten boost_program_options)
add_executable(credit-client credit-client.cc)
target_link_libraries(credit-client ten boost_program_options boost_regex)
add_executable(credit-server credit-server.cc)
target_link_libraries(credit-server ten boost_program_options)
add_library(keygen SHARED keygen.cc)
target_link_libraries(keygen ten)
execute_process(COMMAND
/opt/python/bin/python2.7 -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())"
OUTPUT_VARIABLE PYTHON_LIBDIR
OUTPUT_STRIP_TRAILING_WHITESPACE
)
message(STATUS "python libdir: ${PYTHON_LIBDIR}")
install(TARGETS rl-proxy DESTINATION bin)
install(TARGETS rl-keygen DESTINATION bin)
install(TARGETS credit-server DESTINATION bin)
install(TARGETS credit-client DESTINATION bin)
install(TARGETS keygen DESTINATION lib)
install(FILES rlkeygen.py DESTINATION ${PYTHON_LIBDIR})
Jump to Line
Something went wrong with that request. Please try again.