Skip to content

Commit a468049

Browse files
committedDec 18, 2024
Add submitted code
1 parent 2088744 commit a468049

File tree

791 files changed

+816182
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

791 files changed

+816182
-0
lines changed
 

‎Syft/CMakeLists.txt

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
cmake_minimum_required(VERSION 3.5)
2+
project(Syft)
3+
4+
set (CMAKE_CXX_STANDARD 14)
5+
6+
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++14")
7+
8+
set(CMAKE_MODULE_PATH
9+
"${CMAKE_MODULE_PATH}"
10+
"${CMAKE_ROOT_DIR}/cmake/Modules"
11+
"${CMAKE_CURRENT_SOURCE_DIR}/CMakeModules")
12+
13+
set( CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin )
14+
set( CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib )
15+
cmake_policy(SET CMP0074 NEW)
16+
find_package(CUDD REQUIRED)
17+
find_package(BISON REQUIRED)
18+
find_package(FLEX REQUIRED)
19+
find_package(Boost)
20+
if (Boost_FOUND)
21+
include_directories(${Boost_INCLUDE_DIR})
22+
add_definitions( "-DHAS_BOOST" )
23+
endif()
24+
25+
add_subdirectory(src)

‎Syft/CMakeModules/FindCUDD.cmake

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# Try to find CUDD headers and libraries.
2+
#
3+
# Usage of this module as follows:
4+
#
5+
# find_package(CUDD)
6+
#
7+
# Variables used by this module, they can change the default behaviour and need
8+
# to be set before calling find_package:
9+
#
10+
# CUDD_ROOT Set this variable to the root installation of
11+
# libcudd if the module has problems finding the
12+
# proper installation path.
13+
#
14+
# Variables defined by this module:
15+
#
16+
# CUDD_FOUND System has CUDD libraries and headers
17+
# CUDD_LIBRARIES The CUDD library
18+
# CUDD_INCLUDE_DIRS The location of CUDD headers
19+
20+
# Get hint from environment variable (if any)
21+
if(NOT CUDD_ROOT AND DEFINED ENV{CUDD_ROOT})
22+
set(CUDD_ROOT "$ENV{CUDD_ROOT}" CACHE PATH "CUDD base directory location (optional, used for nonstandard installation paths)")
23+
mark_as_advanced(CUDD_ROOT)
24+
endif()
25+
26+
# Search path for nonstandard locations
27+
if(CUDD_ROOT)
28+
set(CUDD_INCLUDE_PATH PATHS "${CUDD_ROOT}/include" NO_DEFAULT_PATH)
29+
set(CUDD_LIBRARY_PATH PATHS "${CUDD_ROOT}/lib" NO_DEFAULT_PATH)
30+
endif()
31+
32+
find_path(CUDD_INCLUDE_DIRS NAMES cudd.h HINTS ${CUDD_INCLUDE_PATH})
33+
find_library(CUDD_LIBRARIES NAMES cudd CUDDVC-2.5.0 HINTS ${CUDD_LIBRARY_PATH})
34+
35+
include(FindPackageHandleStandardArgs)
36+
37+
find_package_handle_standard_args(CUDD DEFAULT_MSG CUDD_LIBRARIES CUDD_INCLUDE_DIRS)
38+
39+
mark_as_advanced(CUDD_ROOT CUDD_LIBRARIES CUDD_INCLUDE_DIRS)

0 commit comments

Comments
 (0)