Skip to content

Commit

Permalink
Release Candidate 0.12.0
Browse files Browse the repository at this point in the history
  • Loading branch information
tomkurowski committed Apr 18, 2019
0 parents commit eaa5f4a
Show file tree
Hide file tree
Showing 45 changed files with 5,925 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Build & compilation output
/build
/bin
/dist

# Test data
/data
/test

# IDEs and editors
/.idea
.project
.c9/
*.launch
.settings/
*.sublime-workspace
/.vscode
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json

# System Files
.DS_Store
Thumbs.db
55 changes: 55 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
cmake_minimum_required(VERSION 3.1)
project(tersect)

add_definitions(-D_POSIX_C_SOURCE=200809L)

set(DEFAULT_BUILD_TYPE "Release")
if(NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE ${DEFAULT_BUILD_TYPE})
endif()

set(RELEASE_OPTIONS -pedantic -Wall -Wextra -O3 -march=native -std=c99)
set(DEBUG_OPTIONS -pedantic -Wall -Wextra -O3 -march=native -std=c99 -g)

add_executable(tersect "")
target_compile_options(tersect
PRIVATE
"$<$<CONFIG:Release>:${RELEASE_OPTIONS}>"
"$<$<CONFIG:Debug>:${DEBUG_OPTIONS}>"
)

set_target_properties(tersect
PROPERTIES
RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/../bin
)

execute_process(
COMMAND git describe --tags
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
OUTPUT_VARIABLE GIT_VERSION_TAG
OUTPUT_STRIP_TRAILING_WHITESPACE
)
string(REGEX REPLACE "^v" "" TERSECT_VERSION_TAG "${GIT_VERSION_TAG}")
set(VERSION_FILE ${CMAKE_BINARY_DIR}/src/version.h)
configure_file(src/version.h.in ${VERSION_FILE})

include_directories(include ${CMAKE_BINARY_DIR}/src)

find_package(BISON 2.6 REQUIRED)
find_package(FLEX 2.5 REQUIRED)
bison_target(QueryParser src/query.y ${CMAKE_BINARY_DIR}/src/query.tab.c)
flex_target(QueryScanner src/query.l ${CMAKE_BINARY_DIR}/src/lex.yy.c)
add_flex_bison_dependency(QueryScanner QueryParser)

add_subdirectory(src)

install(TARGETS tersect DESTINATION bin)

set(CPACK_GENERATOR DEB RPM TGZ)
set(CPACK_PACKAGE_NAME tersect)
set(CPACK_PACKAGE_VERSION "${TERSECT_VERSION_TAG}")
set(CPACK_PACKAGE_CONTACT "Tomasz Kurowski <t.j.kurowski@cranfield.ac.uk>")
set(CPACK_PACKAGE_DESCRIPTION_SUMMARY
"set theoretical operations on genomic variant data")
set(CPACK_DEBIAN_PACKAGE_SECTION "science")
include(CPack)
19 changes: 19 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
Copyright (C) 2019 Cranfield University

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Loading

0 comments on commit eaa5f4a

Please sign in to comment.