Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated Command Line Paramaters to use boost program_options. Added o… #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
#############################
# CMake - Serial Bridge - root/src
#############################

find_package(amd_std)
find_package(tinyxml2 REQUIRED)
find_package(Boost 1.71 COMPONENTS thread system program_options filesystem REQUIRED)
set(SERIAL_BRIDGE_MODULE_SOURCES SerialBridgeMain.cpp)

add_executable(amm_serial_bridge ${SERIAL_BRIDGE_MODULE_SOURCES})
@@ -11,7 +13,10 @@ target_link_libraries(
PUBLIC amm_std
PUBLIC Boost::thread
PUBLIC Boost::system
PUBLIC Boost::program_options
PUBLIC Boost::filesystem
PUBLIC pthread
PUBLIC tinyxml2::tinyxml2
${TinyXML2_LIBRARIES}
)

11 changes: 11 additions & 0 deletions src/Errors.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#pragma once

namespace amm {
namespace ExecutionErrors {

constexpr int NO_ERROR = 0;
constexpr int SUCCESS = 0;
constexpr int ARGUMENT_ERROR = 1;
constexpr int SERIAL_FAILURE = 2;
}
}
Loading