-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
37 lines (28 loc) · 1.05 KB
/
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
cmake_minimum_required(VERSION 3.10)
project(option_pricing_code)
# Set the C++ standard
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED True)
# Add include directories
include_directories(
${CMAKE_SOURCE_DIR}/external/eigen
)
# Add the pybind11 subdirectory
add_subdirectory(external/pybind11)
# Source files for the module
set(SOURCE_FILES
wrappers.cpp
pricing_algorithms/COS_method/European/stoch_process.cpp
pricing_algorithms/montecarlo_method/European/stoch_process.cpp
pricing_algorithms/COS_method/American/stoch_process.cpp
pricing_algorithms/montecarlo_method/American/stoch_process.cpp
)
# Create the pybind11 module
pybind11_add_module(option_pricing ${SOURCE_FILES})
# Include directories for the module
target_include_directories(option_pricing PRIVATE
${CMAKE_SOURCE_DIR}/pricing_algorithms/COS_method
${CMAKE_SOURCE_DIR}/pricing_algorithms/montecarlo_method
)
# Link libraries (if any additional linking is needed, such as with Boost)
# target_link_libraries(option_pricing PRIVATE ${YOUR_LIBRARIES_HERE})