forked from Qiskit/qiskit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
32 lines (25 loc) · 914 Bytes
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
cmake_minimum_required (VERSION 3.5 FATAL_ERROR)
file(STRINGS "qiskit/VERSION.txt" VERSION_NUM)
project (QISKit VERSION ${VERSION_NUM} LANGUAGES CXX)
# Verbose!!
set(CMAKE_VERBOSE_MAKEFILE True)
set(QISKIT_VERSION ${PROJECT_VERSION} CACHE INTERNAL "VERSION OF QISKIT")
include(cmake/defaults.cmake)
if (ENABLE_TARGETS_NON_PYTHON)
# Add Toolchain utilities for C++ sources
include(cmake/toolchain-utils.cmake)
# Add C++ Qiskit Simulator
add_subdirectory(${PROJECT_SOURCE_DIR}/src/qasm-simulator-cpp)
# Add Python distributable package generator
include(cmake/python-build.cmake)
add_pypi_package_target(pypi_package both)
endif()
include(cmake/tests.cmake)
if (ENABLE_TARGETS_QA)
# Add QA tools: lint, style and sphinx
include(cmake/code-qa.cmake)
add_lint_target()
add_code_style_target()
add_doc_target(html "./" "_build/")
add_coverage_target()
endif()