Conflicts: src/core/comm/DatabaseCampaignMessage.proto.in src/core/cpn/CMakeLists.txt src/core/cpn/DatabaseCampaign.cc src/core/sal/ConcreteCPU.hpp src/core/sal/SALConfig.hpp src/core/util/CMakeLists.txt Change-Id: Id86b93d0e3ea4d9963fcc88605eec0603575ec83
28 lines
772 B
CMake
28 lines
772 B
CMake
set(SRCS
|
|
CampaignManager.cc
|
|
JobServer.cc
|
|
DatabaseCampaign.cc
|
|
)
|
|
|
|
find_package(MySQL REQUIRED)
|
|
include_directories(${MYSQL_INCLUDE_DIR})
|
|
|
|
# only compile concrete implementation of InjectionPoint
|
|
if(CONFIG_INJECTIONPOINT_HOPS)
|
|
set (SRCS ${SRCS} InjectionPointHops.cc)
|
|
else(CONFIG_INJECTIONPOINT_HOPS)
|
|
set (SRCS ${SRCS} InjectionPointSteps.cc)
|
|
endif(CONFIG_INJECTIONPOINT_HOPS)
|
|
|
|
add_library(fail-cpn ${SRCS})
|
|
target_link_libraries(fail-cpn fail-comm fail-util ${MYSQL_LIBRARIES})
|
|
|
|
# if hop-chains need to be calculated by the server, we
|
|
# the smarthopping module
|
|
if(CONFIG_INJECTIONPOINT_HOPS)
|
|
add_dependencies(fail-cpn fail-smarthops)
|
|
endif(CONFIG_INJECTIONPOINT_HOPS)
|
|
|
|
# make sure protobufs are generated before we include them
|
|
add_dependencies(fail-cpn fail-comm)
|