-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,6 @@ | ||
coverage ~=6.0 ; sys_platform != 'win32' | ||
# coverage ~=7.0 | ||
cython ~=3.0 | ||
semantic-version ~=2.10 | ||
wheel | ||
auditwheel | ||
setuptools >=46.4.0 | ||
# semantic-version ~=2.10 | ||
scikit-build-core | ||
importlib-resources ; python_version < '3.9' | ||
scoring-matrices ~=0.2.0 | ||
scoring-matrices ~=0.3.0 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
cmake_minimum_required(VERSION 3.20) | ||
project(${SKBUILD_PROJECT_NAME} VERSION ${SKBUILD_PROJECT_VERSION} LANGUAGES C CXX) | ||
|
||
set(BUILD_SHARED_LIBS OFF) | ||
set(CMAKE_POSITION_INDEPENDENT_CODE ON) | ||
|
||
set(CMAKE_CXX_STANDARD 11) | ||
set(CMAKE_CXX_STANDARD_REQUIRED TRUE) | ||
|
||
message(STATUS "Building ${SKBUILD_PROJECT_NAME} for ${CMAKE_SYSTEM_PROCESSOR}") | ||
|
||
# --- Setup include folders ---------------------------------------------------- | ||
|
||
set_property(GLOBAL PROPERTY PYTHON_EXTENSIONS_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/src) | ||
set(CYTHON_HEADERS_DIR ${CMAKE_CURRENT_LIST_DIR}/include) | ||
|
||
# --- Add global C++ flags ----------------------------------------------------- | ||
|
||
include(CheckCXXCompilerFlag) | ||
|
||
check_cxx_compiler_flag(-funroll-loops HAVE_UNROLL_LOOPS) | ||
if(HAVE_UNROLL_LOOPS) | ||
add_compile_options(-funroll-loops) | ||
endif() | ||
|
||
add_definitions(-DOLD_ATOMIC_FLAG -DNO_PROFILE_PAR) | ||
|
||
if(WIN32) | ||
add_definitions(-D_WIN32) | ||
endif() | ||
|
||
# --- Add scripts for Cython --------------------------------------------------- | ||
|
||
include("src/scripts/cmake/FindAVX1.cmake") | ||
include("src/scripts/cmake/FindAVX2.cmake") | ||
# include("src/scripts/cmake/FindAVX512.cmake") | ||
include("src/scripts/cmake/FindNEON.cmake") | ||
include("src/scripts/cmake/FindPOPCNT.cmake") | ||
include("src/scripts/cmake/FindSSE2.cmake") | ||
include("src/scripts/cmake/FindSSE4.cmake") | ||
include("src/scripts/cmake/CythonExtension.cmake") | ||
|
||
# --- Compile code ------------------------------------------------------------- | ||
|
||
add_subdirectory("src") |
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.