Examples can now be automatically built with the project, if enabled. And I've cleaned up MiaoDX's examples to be more compliant with frnetlib's coding style.
9 lines
267 B
CMake
9 lines
267 B
CMake
add_executable(simple_client tcpsocket_client.cpp)
|
|
target_link_libraries(simple_client frnetlib)
|
|
|
|
add_executable(simple_server tcpsocket_server.cpp)
|
|
target_link_libraries(simple_server frnetlib)
|
|
|
|
install(TARGETS simple_client simple_server
|
|
DESTINATION "bin")
|