Skip to content
Open
Show file tree
Hide file tree
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})
Expand All @@ -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}
)

Expand Down
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