~singpolyma/biboumi

2d50fec964145db0ed3c05ceb5845ea87fbb7622 — louiz’ 5 years ago 7c036d0
cmake: Make some libraries depend on the generated files from database lib
1 files changed, 5 insertions(+), 0 deletions(-)

M CMakeLists.txt
M CMakeLists.txt => CMakeLists.txt +5 -0
@@ 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"