-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
48 lines (38 loc) · 1.15 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
47
48
cmake_minimum_required(VERSION 3.10)
project(AVBMC)
# Set compiler
set(CMAKE_C_COMPILER mpicc)
set(CMAKE_CXX_COMPILER mpicxx)
# Compilation flags used
set(CMAKE_CXX_FLAGS_RELEASE "-ggdb3 -O3 -o -DNDEBUG -std=c++11")
set(CMAKE_CXX_FLAGS_DEBUG "-Wall -Wextra -ggdb3 -g -O0 -std=c+11")
# Add the cmake folder so the FindSphinx module is found
set(CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/cmake" ${CMAKE_MODULE_PATH})
# Set default build configuration
if( NOT CMAKE_BUILD_TYPE )
SET(CMAKE_BUILD_TYPE Release)
endif()
# Include directories
include_directories(
${PROJECT_SOURCE_DIR}/include
${PROJECT_SOURCE_DIR}/src
${PROJECT_SOURCE_DIR}/src/boundary
${PROJECT_SOURCE_DIR}/src/constraint
${PROJECT_SOURCE_DIR}/src/forcefield
${PROJECT_SOURCE_DIR}/src/moves
${PROJECT_SOURCE_DIR}/src/rng
${PROJECT_SOURCE_DIR}/src/sampler
)
# Specify which functions to compile
file(GLOB SOURCES
src/*.cpp
src/boundary/*.cpp
src/constraint/*.cpp
src/forcefield/*.cpp
src/moves/*.cpp
src/rng/*.cpp
src/sampler/*.cpp
)
set(PROJECT_EXECUTABLE avbmc)
# Add executable file VMaChine
add_executable(${PROJECT_EXECUTABLE} ${SOURCES})