-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCMakeLists.txt
42 lines (34 loc) · 1.03 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
cmake_minimum_required(VERSION 3.0 FATAL_ERROR)
set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_STANDARD_REQUIRED True)
enable_language(Fortran)
set(CMAKE_BUILD_TYPE Release)
# libtorch
set(CMAKE_PREFIX_PATH ~/Software/Programming/libtorch)
find_package(Torch REQUIRED)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${TORCH_CXX_FLAGS}")
# Cpp-Library
set(CMAKE_PREFIX_PATH ~/Library/Cpp-Library)
find_package(CL REQUIRED)
include_directories(include)
add_library(tchem STATIC
source/FORTRAN/My_dsygv.f90
source/utility.cpp
source/linalg.cpp
source/IC/InvDisp.cpp
source/IC/IntCoord.cpp
source/IC/IntCoordSet.cpp
source/chem/chemistry.cpp
source/chem/phaser.cpp
source/chem/orderer.cpp
source/chem/normal_mode.cpp
source/polynomial/Polynomial.cpp
source/polynomial/PolynomialSet.cpp
source/polynomial/SAP.cpp
source/polynomial/SAPSet.cpp
source/gaussian.cpp
)
target_link_libraries(tchem
ifcore iomp5 pthread m dl mkl_intel_lp64 mkl_intel_thread mkl_core
${CL_LIBRARIES} ${TORCH_LIBRARIES}
)