Skip to content
This repository

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

file 36 lines (27 sloc) 1.261 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
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})
Something went wrong with that request. Please try again.