Skip to content

Commit

Permalink
[cn] using hashcodes for graph exploration
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonRohou committed Dec 2, 2020
1 parent 2f53195 commit 546de1e
Show file tree
Hide file tree
Showing 14 changed files with 341 additions and 942 deletions.
20 changes: 10 additions & 10 deletions CMakeLists.txt
Expand Up @@ -50,16 +50,16 @@
# Compilation configuration
################################################################################

# # Check that the compiler supports c++11
# include(CheckCXXCompilerFlag)
# check_cxx_compiler_flag("-std=c++11" COMPILER_SUPPORTS_CXX11)
#
# if(COMPILER_SUPPORTS_CXX11)
# set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
# else()
# message(FATAL_ERROR "Tubex needs a compiler with C++11 support")
# endif()
#
# Check that the compiler supports c++11
include(CheckCXXCompilerFlag)
check_cxx_compiler_flag("-std=c++17" COMPILER_SUPPORTS_CXX17)

if(COMPILER_SUPPORTS_CXX17)
add_compile_options(-std=c++17)
else()
message(FATAL_ERROR "Tubex needs a compiler with C++17 support")
endif()

# if(WIN32)
# # We need this for strdup under Windows (see issue #287 of ibex-lib repo)
# add_definitions(-U__STRICT_ANSI__)
Expand Down
5 changes: 5 additions & 0 deletions src/core/CMakeLists.txt
Expand Up @@ -118,6 +118,8 @@
${CMAKE_CURRENT_SOURCE_DIR}/cn/tubex_ContractorNetwork_solve.cpp
${CMAKE_CURRENT_SOURCE_DIR}/cn/tubex_ContractorNetwork_visu.cpp
${CMAKE_CURRENT_SOURCE_DIR}/cn/tubex_ContractorNetwork.h
${CMAKE_CURRENT_SOURCE_DIR}/cn/tubex_Hashcode.cpp
${CMAKE_CURRENT_SOURCE_DIR}/cn/tubex_Hashcode.h
${CMAKE_CURRENT_SOURCE_DIR}/tools/tubex_Tools.cpp
${CMAKE_CURRENT_SOURCE_DIR}/tools/tubex_Tools.h
)
Expand Down Expand Up @@ -146,6 +148,9 @@
${CMAKE_CURRENT_SOURCE_DIR}/cn
${CMAKE_CURRENT_SOURCE_DIR}/tools)
target_link_libraries(tubex PUBLIC Ibex::ibex)

set_property(TARGET tubex PROPERTY CXX_STANDARD 17)
set_property(TARGET tubex PROPERTY CXX_STANDARD_REQUIRED ON)


################################################################################
Expand Down

0 comments on commit 546de1e

Please sign in to comment.