Add unit tests for getHostAndPort()
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
index e99c825..bfd69dc 100644
--- a/tests/CMakeLists.txt
+++ b/tests/CMakeLists.txt
@@ -13,3 +13,6 @@
 
 add_executable(encperf encperf.cxx)
 target_link_libraries(encperf test_util rfb)
+
+add_executable(hostport hostport.cxx)
+target_link_libraries(hostport rfb)