-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathCMakeLists.txt
40 lines (28 loc) · 1.06 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
cmake_minimum_required( VERSION 3.7.0 FATAL_ERROR)
if (CMAKE_BUILD_TYPE STREQUAL Debug)
set(BUILD_POSTFIX "_d")
else(CMAKE_BUILD_TYPE STREQUAL Debug)
set(BUILD_POSTFIX "")
endif(CMAKE_BUILD_TYPE STREQUAL Debug)
# Directory includes
set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/CMake" ${CMAKE_MODULE_PATH})
# Set package information
set(PACKAGE_NAME "petrdtools")
set(PACKAGE_VERSION "2.0.1")
set(PACKAGE_STRING "${PACKAGE_NAME} ${PACKAGE_VERSION}")
set(PACKAGE_TARNAME "${PACKAGE_NAME}-${PACKAGE_VERSION}")
set(PACKAGE_LIBNAME "${PACKAGE_NAME}-${PACKAGE_VERSION}")
set_property(GLOBAL PROPERTY USE_FOLDERS ON)
project(${PACKAGE_NAME} VERSION ${PACKAGE_VERSION})
make_directory(${PROJECT_BINARY_DIR}/config)
set(BUILDER_NAME ${CURRENT_USER})
configure_file(
"${PROJECT_SOURCE_DIR}/EnvironmentInfo.h.in"
"${PROJECT_BINARY_DIR}/config/EnvironmentInfo.h"
)
set(CMAKE_CXX_STANDARD 11)
#set(nmtools_DIR "${CMAKE_CURRENT_SOURCE_DIR}/inm")
include(nmtools-deps)
include_directories("${PROJECT_BINARY_DIR}/config")
include_directories(lib)
add_subdirectory(src)