Commit 2d50fec9 authored by louiz’'s avatar louiz’

cmake: Make some libraries depend on the generated files from database lib

parent 7c036d05
......@@ -153,14 +153,17 @@ include_directories("${CMAKE_CURRENT_BINARY_DIR}/")
file(GLOB source_utils
src/utils/*.[hc]pp)
add_library(utils OBJECT ${source_utils})
add_dependencies(utils database)
file(GLOB source_irc
src/irc/*.[hc]pp)
add_library(irc OBJECT ${source_irc})
add_dependencies(irc database)
file(GLOB source_xmpp
src/xmpp/*.[hc]pp)
add_library(xmpp OBJECT ${source_xmpp})
add_dependencies(xmpp database)
file(GLOB source_identd
src/identd/*.[hc]pp)
......@@ -169,6 +172,7 @@ add_library(identd OBJECT ${source_identd})
file(GLOB source_bridge
src/bridge/*.[hc]pp)
add_library(bridge OBJECT ${source_bridge})
add_dependencies(bridge database)
file(GLOB source_config
src/config/*.[hc]pp)
......@@ -181,6 +185,7 @@ add_library(logger OBJECT ${source_logger})
file(GLOB source_network
src/network/*.[hc]pp)
add_library(network OBJECT ${source_network})
add_dependencies(network database)
if(LITESQL_FOUND)
LITESQL_GENERATE_CPP("database/database.xml"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment