-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
39 lines (27 loc) · 866 Bytes
/
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
cmake_minimum_required(VERSION 3.0.0)
include(GNUInstallDirs)
set(PROJECT_NAME molecular_dynamics_sim)
project(${PROJECT_NAME})
#########################
# External Dependencies #
#########################
include(ExternalProject)
ExternalProject_Add(zlib
URL "${CMAKE_SOURCE_DIR}/external_libs/zlib.tar.bz2"
CMAKE_ARGS "-DCMAKE_INSTALL_PREFIX=${CMAKE_BINARY_DIR}"
)
ExternalProject_Add(libpng
DEPENDS zlib
URL "${CMAKE_SOURCE_DIR}/external_libs/libpng.tar.bz2"
CMAKE_ARGS "-DCMAKE_INSTALL_PREFIX=${CMAKE_BINARY_DIR}"
)
ExternalProject_Add(thr_pool
URL "${CMAKE_SOURCE_DIR}/external_libs/thr_pool.tar.bz2"
CMAKE_ARGS "-DCMAKE_INSTALL_PREFIX=${CMAKE_BINARY_DIR}"
)
link_directories("${CMAKE_BINARY_DIR}/${CMAKE_INSTALL_LIBDIR}")
###########
# Project #
###########
add_subdirectory("src/2d_sim")
add_subdirectory("src/3d_sim")