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

76 lines
1.5 KiB
CMake
Raw Normal View History

2015-09-21 23:05:36 +01:00
2015-10-20 08:07:42 +01:00
#cmake_minimum_required(VERSION 3.1.0 FATAL_ERROR)
2015-09-21 23:05:36 +01:00
2016-07-31 16:18:21 +01:00
if (CMAKE_MAJOR_VERSION GREATER 2)
2015-09-21 23:05:36 +01:00
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}
)
2017-09-06 01:09:46 +01:00
ADD_LIB(horus ${HORUS_SOURCES} HorusYap.cpp )
2015-09-21 23:05:36 +01:00
if(DEFINED YAP_MAJOR_VERSION)
TARGET_LINK_LIBRARIES(horus
libYap
)
else()
2017-09-06 01:09:46 +01:00
ADD_LIB(horus ${HORUS_SOURCES} )
2015-09-21 23:05:36 +01:00
endif()
2015-11-09 11:32:25 +00:00
#set_property(TARGET horus PROPERTY CXX_STANDARD 11)
2015-09-21 23:05:36 +01:00
#set_property(TARGET horus PROPERTY CXX_STANDARD_REQUIRED ON)
2017-11-21 15:44:43 +00:00
set_target_properties (horus PROPERTIES CXX_STANDARD 11 CXX_STANDARD_REQUIRED ON)
2015-09-21 23:05:36 +01:00
add_executable (HorusCli HorusCli.cpp)
set_target_properties (HorusCli PROPERTIES OUTPUT_NAME hcli CXX_STANDARD 11 CXX_STANDARD_REQUIRED ON)
2017-11-15 12:18:19 +00:00
target_link_libraries(HorusCli m horus )
2015-09-21 23:05:36 +01:00
install(TARGETS horus HorusCli
2017-12-05 15:14:57 +00:00
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
2018-11-16 14:02:56 +00:00
LIBRARY DESTINATION ${YAP_INSTALL_LIBDIR}
ARCHIVE DESTINATION ${YAP_INSTALL_LIBDIR}
2015-09-21 23:05:36 +01:00
)
2016-07-31 16:18:21 +01:00
endif()