NextPP / sudoManager

Restaurant manager that you would love to hire.
MIT License
3 stars 5 forks source link

Issue #5, Add Item class and alter CMake #18

Closed Dogbonee closed 1 year ago

Dogbonee commented 1 year ago

This pull request adds the Item class, which will serve as a starting point for sudoManager. This contains the variables Item ID, name, price, stock, and additional info for the item. When finding an object, itemID should always be used, rather than the name. Item IDs should also be exclusive to a specific item. CMake was altered to include the include directory, add add the source file variable. Resolves Issue #5

Dogbonee commented 1 year ago

CMake needs to be edited before merging

Dogbonee commented 1 year ago

This works, but I had to make the sudoManager library static. My CMake knowledge is limited, so I didn't know how to make it work with a shared library, and i didnt want to set link_directories to the build folder. If we could specify a lib folder to build the libraries to and then link to that, it would be better. Googletest also doesn't have a cmakelists, so i removed the add_subdirectory line in extern/CMakeLists.txt for now.