summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt24
1 files changed, 21 insertions, 3 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index bff724c..bd8ca76 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -20,6 +20,13 @@ include_directories("src/")
include_directories(SYSTEM ${CRYPTO++_INCLUDE_DIR})
#
+## utils
+#
+file(GLOB source_utils
+ src/utils/*.[hc]pp)
+add_library(utils STATIC ${source_utils})
+
+#
## network
#
file(GLOB source_network
@@ -32,7 +39,7 @@ add_library(network STATIC ${source_network})
file(GLOB source_irc
src/irc/*.[hc]pp)
add_library(irc STATIC ${source_irc})
-target_link_libraries(irc network)
+target_link_libraries(irc network utils)
#
## xmpplib
@@ -40,7 +47,7 @@ target_link_libraries(irc network)
file(GLOB source_xmpp
src/xmpp/*.[hc]pp)
add_library(xmpp STATIC ${source_xmpp})
-target_link_libraries(xmpp bridge network ${CRYPTO++_LIBRARIES} expatpp)
+target_link_libraries(xmpp bridge network utils ${CRYPTO++_LIBRARIES} expatpp)
#
## bridge
@@ -54,4 +61,15 @@ add_executable(${PROJECT_NAME} src/main.cpp)
target_link_libraries(${PROJECT_NAME}
xmpp
irc
- bridge) \ No newline at end of file
+ bridge)
+
+#
+## Tests
+#
+
+add_executable(test src/test.cpp)
+target_link_libraries(test
+ xmpp
+ irc
+ bridge
+ utils)