Add a Config module, and use it to get the password from a file

This commit is contained in:
Florent Le Coz
2013-11-10 20:47:11 +01:00
parent 10d5287177
commit f0d9273da6
5 changed files with 304 additions and 7 deletions
+16 -2
View File
@@ -32,6 +32,14 @@ file(GLOB source_utils
add_library(utils STATIC ${source_utils})
target_link_libraries(utils ${ICONV_LIBRARIES})
#
## config
#
file(GLOB source_config
src/config/*.[hc]pp)
add_library(config STATIC ${source_config})
target_link_libraries(config utils)
#
## network
#
@@ -64,11 +72,16 @@ file(GLOB source_bridge
add_library(bridge STATIC ${source_bridge})
target_link_libraries(bridge xmpp irc)
#
## Main executable
#
add_executable(${PROJECT_NAME} src/main.cpp)
target_link_libraries(${PROJECT_NAME}
xmpp
irc
bridge)
bridge
utils
config)
#
## Tests
@@ -79,6 +92,7 @@ target_link_libraries(test
xmpp
irc
bridge
utils)
utils
config)
CONFIGURE_FILE(config.h.cmake src/config.h @ONLY)