@@ -38,13 +38,24 @@ if(${benchmark_FOUND})
3838 set (LIBS ${LIBS} ${benchmark_LIBRARIES} )
3939endif (${benchmark_FOUND} )
4040
41+ ###############################################################################
42+ # Conan
43+ # - Resolves dependencies of ZMQ
44+ ###############################################################################
45+
46+ if (EXISTS "${CMAKE_BINARY_DIR} /conanbuildinfo.cmake" )
47+ include ("${CMAKE_BINARY_DIR} /conanbuildinfo.cmake" )
48+ conan_basic_setup()
49+ message ("${CMAKE_INCLUDE_PATH} " )
50+ message ("${CMAKE_LIBRARY_PATH} " )
51+ endif ()
52+
4153###############################################################################
4254# Boost
4355###############################################################################
44- #find_package(Boost 1.58.0 COMPONENTS unit_test_framework program_options REQUIRED)
45- #include_directories(SYSTEM ${Boost_INCLUDE_DIRS})
46- #include_directories(SYSTEM "${CMAKE_CURRENT_SOURCE_DIR}/include/graybat/utils/hana/include/")
47- #set(LIBS ${LIBS} ${Boost_LIBRARIES})
56+ find_package (Boost 1.56.0 COMPONENTS unit_test_framework program_options REQUIRED)
57+ include_directories (SYSTEM ${Boost_INCLUDE_DIRS} )
58+ set (LIBS ${LIBS} ${Boost_LIBRARIES} )
4859
4960###############################################################################
5061# Elegant Progressbars for a More Cililized Age
@@ -67,6 +78,7 @@ if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
6778 set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wextra" )
6879 set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wpedantic" )
6980 set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wunused-parameter" )
81+ set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -D_GLIBCXX_USE_CXX11_ABI=0" )
7082 #set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O3")
7183endif ()
7284
@@ -91,6 +103,7 @@ endif()
91103###############################################################################
92104# Targets
93105###############################################################################
106+ set (CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR} /bin)
94107
95108# Benchmark
96109file (GLOB BENCHMARKS test /benchmark/*.cpp)
@@ -127,9 +140,9 @@ target_link_libraries(gbZMQSignaling ${LIBS})
127140enable_testing ()
128141add_test (graybat_check_build "${CMAKE_COMMAND} " --build ${CMAKE_BINARY_DIR} --target check)
129142add_test (graybat_example_build "${CMAKE_COMMAND} " --build ${CMAKE_BINARY_DIR} --target example)
130- add_test (graybat_test_run mpiexec -n 2 check )
131- add_test (graybat_gol_run mpiexec gol 90 4 )
132- add_test (graybat_pr_run mpiexec pagerank )
143+ add_test (graybat_test_run mpiexec -n 2 bin/ check )
144+ add_test (graybat_gol_run mpiexec bin/ gol 90 4 )
145+ add_test (graybat_pr_run mpiexec bin/ pagerank )
133146set_tests_properties (graybat_test_run PROPERTIES DEPENDS graybat_check_build)
134147set_tests_properties (graybat_gol_run PROPERTIES DEPENDS graybat_example_build)
135148set_tests_properties (graybat_pr_run PROPERTIES DEPENDS graybat_example_build)
0 commit comments