-
Notifications
You must be signed in to change notification settings - Fork 2
/
CMakeLists.txt
46 lines (37 loc) · 1.56 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
38
39
40
41
42
43
44
45
46
# CMakeLists.txt -- Build system for the sGMRFmix modules
#
# Copyright (c) 2021 Anand K Subramanian <[email protected]>
#
# All rights reserved. Use of this source code is governed by the
# MIT license that can be found in the LICENSE file.
cmake_minimum_required(VERSION 3.10)
project(sgrmrfmix)
set(CMAKE_VERBOSE_MAKEFILE ON)
set(CMAKE_CXX_STANDARD 14)
set(CMAKE_BUILD_TYPE Release)
#set(PYBIND11_CPP_STANDARD -std=c++1y)
#find_package(PythonLibs 3 REQUIRED) (This may cause pybyind11 to use a different python version than the current interpreter)
find_package(Boost REQUIRED)
find_package(Armadillo REQUIRED)
find_package(BLAS REQUIRED)
find_package(LAPACK REQUIRED)
link_libraries(armadillo lapack blas boost_system)
add_subdirectory(pybind11)
set(SOURCE_FILES
src/headers/compute_anomaly.h
src/headers/dmvnorm.h
src/headers/glasso.h
src/headers/gmrfmix.h
src/headers/sgaussmix.h
src/headers/sGMRFmix.h
src/lib/termcolor.h
)
include_directories("${PROJECT_SOURCE_DIR}/")
#add_subdirectory(src)
pybind11_add_module(_sgmrfmix src/_sgmrfmix.cpp ${SOURCE_FILES})
# Only include CPP file that has the main() function
#add_executable(sgrmrfmix src/test.cpp ${SOURCE_FILES})
#add_executable(sgrmrfmix src/test.cpp ${SOURCE_FILES})
#target_include_directories(sgrmrfmix PRIVATE ${PYTHON_INCLUDE_DIRS} src/)
target_link_libraries(_sgmrfmix PRIVATE)
#add_executable(sgrmrfmix src/headers/glasso.h src/headers/gmrfmix.h src/headers/sgaussmix.h src/headers/dmvnorm.h src/headers/sGMRFmix.h src/lib/termcolor.h src/headers/compute_anomaly.h src/_sgmrfmix.cpp)