From 5bf1da663a88c17a42b6870fe94a1661eb3b0053 Mon Sep 17 00:00:00 2001 From: Andrew Date: Thu, 1 Jun 2023 18:22:45 +0300 Subject: [PATCH] CMake executable merge --- CMakeLists.txt | 6 +----- server_algorithm.cpp => server.cpp | 0 xp_algorithm.cpp => xp.cpp | 0 3 files changed, 1 insertion(+), 5 deletions(-) rename server_algorithm.cpp => server.cpp (100%) rename xp_algorithm.cpp => xp.cpp (100%) diff --git a/CMakeLists.txt b/CMakeLists.txt index c405b80..7854bbe 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -9,10 +9,6 @@ IF(!OPENSSL_FOUND) MESSAGE(FATAL_ERROR "OpenSSL Not Found") ENDIF() -ADD_EXECUTABLE(xpkey xp_algorithm.cpp key.cpp) +ADD_EXECUTABLE(xpkey main.cpp xp.cpp server.cpp key.cpp util.cpp cli.cpp) TARGET_INCLUDE_DIRECTORIES(xpkey PUBLIC crypto) TARGET_LINK_LIBRARIES(xpkey PUBLIC crypto) - -ADD_EXECUTABLE(srv2003key server_algorithm.cpp key.cpp) -TARGET_INCLUDE_DIRECTORIES(srv2003key PUBLIC crypto) -TARGET_LINK_LIBRARIES(srv2003key PUBLIC crypto) diff --git a/server_algorithm.cpp b/server.cpp similarity index 100% rename from server_algorithm.cpp rename to server.cpp diff --git a/xp_algorithm.cpp b/xp.cpp similarity index 100% rename from xp_algorithm.cpp rename to xp.cpp