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}
)
ADD_LIBRARY(horus SHARED ${HORUS_SOURCES} HorusYap.cpp )
if(DEFINED YAP_MAJOR_VERSION)
TARGET_LINK_LIBRARIES(horus
libYap
)
else()
ADD_LIBRARY(horus SHARED ${HORUS_SOURCES} )
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)
set_target_properties (horus PROPERTIES PREFIX "" 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 horus )
install(TARGETS horus HorusCli
RUNTIME DESTINATION ${bindir}
LIBRARY DESTINATION ${dlls}
2016-01-20 22:36:52 +00:00
ARCHIVE DESTINATION ${dlls}
2015-09-21 23:05:36 +01:00
)
2016-07-31 16:18:21 +01:00
endif()