8000 refactor: src · m0dulo/LyxPythonVM@58ef74d · GitHub
[go: up one dir, main page]

Skip to content
8000

Commit 58ef74d

Browse files
author
m0dulo
committed
refactor: src
1 parent 72a023e commit 58ef74d

14 files changed

+23
-11
lines changed

CMakeLists.txt

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,22 @@
11
cmake_minimum_required(VERSION 3.0)
2+
23
project(LyxPythonVM)
4+
35
set (EXECUTABLE_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/bin)
6+
47
if(CMAKE_BUILD_TYPE MATCHES Debug)
58
SET( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g -w -msse3 -funroll-loops -std=c++11 -O0 -pg" )
69
else()
710
SET( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC -funroll-loops -w -std=c++11 -O2 -march=native" )
811
endif()
9-
set(SRC ${PROJECT_SOURCE_DIR}/src/main.cpp)
10-
add_executable(main ${SRC})
12+
13+
include_directories(src/)
14+
15+
set(SRCS src/main.cpp
16+
src/code/binaryFileParser.cpp
17+
src/code/codeObject.cpp
18+
src/object/lyxInteger.cpp
19+
src/object/lyxString.cpp
20+
src/util/arrayList.cpp)
21+
22+
add_executable(vm ${SRCS})
File renamed without changes.

src/binaryFileParser.hpp renamed to src/code/binaryFileParser.hpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
#ifndef BINARY_FILE_PARSER_HPP
22
#define BINARY_FILE_PARSER_HPP
33

4-
#include "arrayList.hpp"
5-
#include "bufferedInputStream.hpp"
6-
#include "codeObject.hpp"
7-
#include "lyxInteger.hpp"
8-
#include "lyxObject.hpp"
9-
#include "lyxString.hpp"
4+
#include "util/bufferedInputStream.hpp"
5+
#include "util/arrayList.hpp"
6+
#include "object/lyxObject.hpp"
7+
#include "object/lyxInteger.hpp"
8+
#include "object/lyxString.hpp"
9+
#include "code/codeObject.hpp"
1010

1111
class BinaryFileParser {
1212
private:
File renamed without changes.

src/codeObject.hpp renamed to src/code/codeObject.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#ifndef CODE_OBJECT_HPP
22
#define CODE_OBJECT_HPP
33

4-
#include "lyxObject.hpp"
4+
#include "object/lyxObject.hpp"
55

66
class LyxString;
77

src/main.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
#include "bufferedInputStream.hpp"
2-
#include "binaryFileParser.hpp"
1+
#include "util/bufferedInputStream.hpp"
2+
#include "code/binaryFileParser.hpp"
33

44
int main(int argc, char **argv) {
55
if (argc <= 1) {
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)
0