-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathCMakeLists.txt
32 lines (25 loc) · 874 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.14)
project(automate_cpp)
set(CMAKE_CXX_STANDARD 14)
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
find_package(pybind11 CONFIG REQUIRED)
find_package(Eigen3 REQUIRED)
include(FetchContent)
FetchContent_Declare(
brloader
GIT_REPOSITORY https://github.com/deGravity/breploader.git
GIT_TAG v0.5
)
FetchContent_MakeAvailable(brloader)
pybind11_add_module(automate_cpp
${CMAKE_CURRENT_SOURCE_DIR}/cpp/automate.cpp
${CMAKE_CURRENT_SOURCE_DIR}/cpp/disjointset.h
${CMAKE_CURRENT_SOURCE_DIR}/cpp/disjointset.cpp
${CMAKE_CURRENT_SOURCE_DIR}/cpp/lsh.h
${CMAKE_CURRENT_SOURCE_DIR}/cpp/lsh.cpp
${CMAKE_CURRENT_SOURCE_DIR}/cpp/eclass.h
${CMAKE_CURRENT_SOURCE_DIR}/cpp/eclass.cpp
${CMAKE_CURRENT_SOURCE_DIR}/cpp/part.h
${CMAKE_CURRENT_SOURCE_DIR}/cpp/part.cpp
)
target_link_libraries(automate_cpp PUBLIC breploader Eigen3::Eigen)