From c9356571e8323a8f6242620e4f0ecd4a23052781 Mon Sep 17 00:00:00 2001 From: praticamentetilde Date: Tue, 3 Jan 2017 18:21:29 +0100 Subject: [PATCH] Corrected CMakeLists.txt for new directory structure. Corrected snippet for the same reason. --- library/CMakeLists.txt | 2 +- snippet/main.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/library/CMakeLists.txt b/library/CMakeLists.txt index 41c7668..6b9e89e 100644 --- a/library/CMakeLists.txt +++ b/library/CMakeLists.txt @@ -25,7 +25,7 @@ cmake_minimum_required(VERSION 2.8) SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -lpopt") list(APPEND SRC_LIST "command.cpp" "commandexecutor.h" "commands.cpp" "datas.cpp" "shell.cpp" "stringtoargcargv.cpp" - "commandexecutor.cpp" "command.h" "data.cpp" "${CMAKE_CURRENT_SOURCE_DIR}/../msh-console-snippet/main.cpp" "shell.h" "stringtoargcargv.h") + "commandexecutor.cpp" "command.h" "data.cpp" "${CMAKE_CURRENT_SOURCE_DIR}/../snippet/main.cpp" "shell.h" "stringtoargcargv.h") set(lib Off) #off=debug demo with main.cpp, on=library if(${lib}) diff --git a/snippet/main.cpp b/snippet/main.cpp index 400f054..e044af7 100644 --- a/snippet/main.cpp +++ b/snippet/main.cpp @@ -1,8 +1,8 @@ #include #include #include -#include "../msh-console-library/shell.h" -#include "../msh-console-library/command.h" +#include "../library/shell.h" +#include "../library/command.h" using namespace std; using namespace mshconsole;