CMakeLists.txt 627 B

123456789101112
  1. cmake_minimum_required(VERSION 2.8)
  2. set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
  3. add_executable(ccats src/main.cpp src/Server.cpp src/base64.cpp src/JsonCommander.cpp src/FileManager.cpp src/UserManager.cpp src/Config.cpp src/CovertChannel/CovertChannel.cpp src/CovertChannel/ForwardChannel.cpp)
  4. # dependencies used by server only
  5. find_package(libtins 4.2 REQUIRED)
  6. find_package(OpenSSL REQUIRED)
  7. include_directories(${Boost_INCLUDE_DIR} ${JSONCPP_INCLUDE_DIRS})
  8. target_link_libraries(ccats PRIVATE ${CMAKE_THREAD_LIBS_INIT} ${OPENSSL_LIBRARIES} ${Boost_LIBRARIES} ${LIBTINS_LIBRARIES} ${JSONCPP_LIBRARIES})