From 50b8645f8cbbcf96a8de5bfbcb2f048efe087c9d Mon Sep 17 00:00:00 2001 From: "Marcel M. Otte" Date: Mon, 18 Apr 2016 17:58:45 +0200 Subject: [PATCH] added main function in test.cpp and added (commented out line) in CMakeLists.txt --- cpp/CMakeLists.txt | 2 ++ cpp/CmdLineOptions_test.cpp | 6 ++++++ 2 files changed, 8 insertions(+) diff --git a/cpp/CMakeLists.txt b/cpp/CMakeLists.txt index bbc536e..615c7b9 100644 --- a/cpp/CMakeLists.txt +++ b/cpp/CMakeLists.txt @@ -4,3 +4,5 @@ project(CmdLineOptions) set(CMAKE_CXX_FLAGS "--std=c++14 -g -Wall") add_library(CmdLineOptions_static STATIC CmdLineOptions.cpp) add_library(CmdLineOptions SHARED CmdLineOptions.cpp) + +#add_executable(CmdLineOptions_test CmdLineOptions_test.cpp) diff --git a/cpp/CmdLineOptions_test.cpp b/cpp/CmdLineOptions_test.cpp index 22aa02d..14f31d2 100644 --- a/cpp/CmdLineOptions_test.cpp +++ b/cpp/CmdLineOptions_test.cpp @@ -9,4 +9,10 @@ namespace cmdlineoptions { +int main(int argc, char**argv) +{ + + return 0; +} + } /* namespace cmdlineoptions */