This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
yap-6.3/packages/CLPBN/horus/CMakeLists.txt
Vitor Santos Costa 4b5ae9331f clpbn
2019-02-14 09:08:15 +00:00

76 lines
1.5 KiB
CMake

#cmake_minimum_required(VERSION 3.1.0 FATAL_ERROR)
if (CMAKE_MAJOR_VERSION GREATER 2)
set ( HORUS_SOURCES
BayesBall.cpp
BayesBallGraph.cpp
BeliefProp.cpp
ConstraintTree.cpp
CountingBp.cpp
ElimGraph.cpp
Factor.cpp
FactorGraph.cpp
GenericFactor.cpp
GroundSolver.cpp
Histogram.cpp
HorusYap.cpp
Indexer.cpp
LiftedBp.cpp
LiftedKc.cpp
LiftedOperations.cpp
LiftedUtils.cpp
LiftedVe.cpp
LiftedWCNF.cpp
Parfactor.cpp
ParfactorList.cpp
ProbFormula.cpp
Util.cpp
Var.cpp
VarElim.cpp
WeightedBp.cpp
)
set (UTESTS_SOURCES
$(utestsdir)/BeliefPropTest.cpp
$(utestsdir)/Common.cpp
$(utestsdir)/CountingBpTest.cpp
$(utestsdir)/FactorTest.cpp
$(utestsdir)/VarElimTest.cpp
$(utestsdir)/UnitTesting.cpp
)
INCLUDE_DIRECTORIES(
${CMAKE_CURRENT_SOURCE_DIR}
)
add_library(horus ${HORUS_SOURCES} HorusYap.cpp )
if(DEFINED YAP_MAJOR_VERSION)
TARGET_LINK_LIBRARIES(horus
libYap
)
else()
add_library(horus ${HORUS_SOURCES} )
endif()
#set_property(TARGET horus PROPERTY CXX_STANDARD 11)
#set_property(TARGET horus PROPERTY CXX_STANDARD_REQUIRED ON)
set_target_properties (horus PROPERTIES CXX_STANDARD 11 CXX_STANDARD_REQUIRED ON)
add_executable (HorusCli HorusCli.cpp)
set_target_properties (HorusCli PROPERTIES OUTPUT_NAME hcli CXX_STANDARD 11 CXX_STANDARD_REQUIRED ON)
target_link_libraries(HorusCli m horus )
install(TARGETS horus HorusCli
RUNTIME DESTINATION ${YAP_INSTALL_LIBDIR}
LIBRARY DESTINATION ${YAP_INSTALL_LIBDIR}
ARCHIVE DESTINATION ${YAP_INSTALL_LIBDIR}
)
endif()