-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFindOpenBabel3.cmake
More file actions
38 lines (32 loc) · 1.74 KB
/
Copy pathFindOpenBabel3.cmake
File metadata and controls
38 lines (32 loc) · 1.74 KB
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
#[[*
* Permission is granted to copy, distribute and/or modify the documents
* in this directory and its subdirectories unless otherwise stated under
* the terms of the GNU Free Documentation License, Version 1.1 or any later version
* published by the Free Software Foundation; with no Invariant Sections,
* no Front-Cover Texts and no Back-Cover Texts. A copy of the license
* is available at the website of the GNU Project.
* The programs and code snippets in this directory and its subdirectories
* are free software; you can redistribute them and/or modify it under the
* terms of the GNU General Public License as published by the Free Software
* Foundation; either version 2 of the License, or (at your option) any later
* version. This code is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* See the GNU General Public License for more details.
*
* Author Marco M. Mosca, email: marcomichele.mosca@gmail.com
*]]
set(PACKAGE_DIR_BABEL "${CMAKE_CURRENT_SOURCE_DIR}/External/openbabel-3-1-1/install")
set(BABEL_INCLUDE_DIR "${PACKAGE_DIR_BABEL}/include")
set(BABEL_LIB_DIR "${PACKAGE_DIR_BABEL}/bin")
set(BABEL_BINARY_DIR "${PACKAGE_DIR_BABEL}/bin")
file(GLOB BABEL_LIBRARIES ${PACKAGE_DIR_BABEL}/bin/*.lib)
IF( (NOT EXISTS ${BABEL_INCLUDE_DIR}) OR (NOT EXISTS ${BABEL_LIB_DIR}) )
message(SEND_ERROR "BABEL directories do not exist, Please assure they are inside the package folder")
return()
ENDIF()
message(STATUS "Using local package for BABEL library...")
message(STATUS "BABEL library detected at: ${PACKAGE_DIR_BABEL}")
include_directories(${BABEL_INCLUDE_DIR})
link_directories(${BABEL_LIB_DIR})
set (Babel_FOUND 1)