-
Notifications
You must be signed in to change notification settings - Fork 35
/
Copy pathCMakeLists.txt
48 lines (23 loc) · 905 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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
cmake_minimum_required(VERSION 3.22)
project(bertini2)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
include(CMakePrintHelpers) # so we can print cmake variable values
include(GNUInstallDirs) # so that `CMAKE_INSTALL_LIBDIR` is not blank. eg
find_package(Python 3.13 REQUIRED COMPONENTS Interpreter Development.Module NumPy)
############################
# the core builds a library and an executable depending on that library
#
add_library(bertini2)
add_executable(bertini2_exe)
set_property(TARGET bertini2_exe PROPERTY OUTPUT_NAME bertini2)
add_subdirectory(core)
###########
# next, in `python_bindings`, build a shared python library, and a pure-python library that wraps around that.
#
python_add_library(_pybertini MODULE WITH_SOABI)
add_subdirectory(python_bindings)
###########
# finally, the pure-python part of the project.
#
add_subdirectory(python)