Skip to content

Cmake build has done#3

Open
muhammadhasnain12 wants to merge 24 commits into
masterfrom
cmake-branch
Open

Cmake build has done#3
muhammadhasnain12 wants to merge 24 commits into
masterfrom
cmake-branch

Conversation

@muhammadhasnain12

Copy link
Copy Markdown
Collaborator

All files with cmake files

Comment thread CMakeLists.txt Outdated
Comment on lines +3 to +6




Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove these extra lines

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed Extra Lines

Comment thread CMakeLists.txt Outdated



add_executable(roadtesting main.cpp Map.cpp Map.h Lane.cpp Lane.h Road.cpp Road.h)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

each file on a new line

Comment thread CMakeLists.txt Outdated
Comment on lines +9 to +10
# target_link_libraries(cmake-good PRIVATE Say_hello)
#target_link_libraries(ROADTESTING PRIVATE Map) No newline at end of file

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove this

Comment thread Map.cpp Outdated

auto all_roads = v.get("roads").get<array>();
// Loading the map file
// Loading the map file

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove this comment

Comment thread Map.cpp
Road road{tid, tlb, trb, tl};
// fill other road data
roads_.push_back(road);
roads_.push_back(road);

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

correct indentation

Comment thread Road.h Outdated
float get_right_boundary_id(){return right_boundary_id;}
std::vector<Lane> get_lanes(){return lanes;}
std::vector<Lane> get_lanes(){return lanes;}

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove extra line

Comment thread RoadTesting.cbp Outdated
Comment on lines +2 to +5
<CodeBlocks_project_file>
<FileVersion major="1" minor="6" />
<Project>
<Option title="RoadTesting" />

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove this file

Comment thread main.cpp Outdated
@@ -1,7 +1,11 @@
#include "Map.h"

using namespace std;

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove this

Comment thread main.cpp Outdated
{
Map map;
map.load_data_from_file("map.json");
// map.get_road2_id();

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove this line

@ahmed-nad ahmed-nad left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. Remove extra files
  2. Remove unecessary includes
  3. Don't ever upload build artifacts such as .o and .exe files and ide project related files
  4. add a .gitignore file to ignore these files

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants