-
Notifications
You must be signed in to change notification settings - Fork 1
reorganization of folders and refactoring #4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
| add_executable(client client.c utils/extract_ip_port_from_string.c utils/opt_arg.c ../lib/check_port.c ../lib/set_sockaddr_in.c) | ||
|
|
||
| target_include_directories(client PUBLIC ./) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In a library directory we have libraries so, why don't you create a directory with check_callbacks and place here check_callbacks.h and build it as a library?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also, you didn't fix last problem, you've included ./ but not ../lib it's unnecessary if you'll make a library, you can just target_link_libraries(client STATIC CheckCallbacks)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's better to explicitly set utils folder and not forcing CMake looking for it!
target_include_directories(client PUBLIC ./ ./utils)
src/server/CMakeLists.txt
Outdated
| add_executable(server server.c utils/opt_arg.c utils/factorial.h utils/factorial.c ../lib/check_port.h ../lib/check_port.c ../lib/set_sockaddr_in.h utils/check_tnum.h utils/check_tnum.c ../lib/set_sockaddr_in.c ../lib/set_sockaddr_in.h ../lib/set_sockaddr_in.c) | ||
| add_executable(server server.c utils/opt_arg.c utils/factorial.c ../lib/check_port.c ../lib/set_sockaddr_in.c) | ||
|
|
||
| target_include_directories(server PUBLIC ./) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Look above
|
|
||
| unsigned int* handle_options(int, char**, struct option[], const int, int (* [])(unsigned int*)); | ||
|
|
||
| int check_tnum(unsigned int* tnum); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In our codestyle we don't write a name of parameter in a header file
No description provided.