forked from sxin-h/CPPBinLib
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
44 lines (34 loc) · 1.36 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
cmake_minimum_required(VERSION 3.1...3.14)
if(${CMAKE_VERSION} VERSION_LESS 3.13)
cmake_policy(VERSION ${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION})
else()
cmake_policy(VERSION 3.14)
endif()
project(CPPBinLib VERSION 1.0
DESCRIPTION "A C++ wrapper for reading ANSYS result files."
LANGUAGES Fortran CXX)
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)
# Create some cache variables for the various ANSYS
# libraries and files
set(ANSYS_BINLIB "C:/Program Files/ANSYS Inc/v192/ansys/custom/misc/win64/binlib.lib"
CACHE FILEPATH "Path the the ANSYS BinLib library file")
set(ANSYS_BINLIB_DLL "C:/Program Files/ANSYS Inc/v192/ansys/custom/misc/win64/binlib.dll"
CACHE FILEPATH "Path to the ANSYS BinLib library dll")
set(ANSYS_RESRD_FORTRAN "C:/Program Files/ANSYS Inc/v192/ansys/customize/user/ResRd.F"
CACHE FILEPATH "Path to the ANSYS ResRd.F fortran file")
set(ANSYS_INCLUDE_PATH "C:/Program Files/ANSYS Inc/v192/ansys/customize/include"
CACHE PATH "Path to the ANSYS customization include directory")
option(PACKAGE_TESTS "Build the tests" ON)
if(PACKAGE_TESTS)
enable_testing()
add_subdirectory(test)
endif()
# Packages
find_package(Eigen3 REQUIRED)
if(NOT EIGEN3_FOUND)
message(FATAL_ERROR "Could not find the eigen libraries...")
endif()
find_package(Boost REQUIRED)
add_subdirectory(src)