forked from eclipse/ice
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
51 lines (42 loc) · 1.9 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
49
50
51
# Copyright (c) 2012, 2014 UT-Battelle, LLC.
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Eclipse Public License v1.0
# which accompanies this distribution, and is available at
# http://www.eclipse.org/legal/epl-v10.html
#
# Contributors:
# Initial API and implementation and/or initial documentation - Jay Jay Billings,
# Jordan H. Deyton, Dasha Gorin, Alexander J. McCaskey, Taylor Patterson,
# Claire Saunders, Matthew Wang, Anna Wojtowicz
#Set the minimum required version of cmake for this project.
cmake_minimum_required(VERSION 2.8)
#Set a name for this project.
project(native)
# ICE requires C++11 to use shared pointers
list( APPEND CMAKE_CXX_FLAGS "-std=c++0x ${CMAKE_CXX_FLAGS}")
#Find boost
FIND_PACKAGE(Boost 1.35 REQUIRED)
#Find HDF5
FIND_PACKAGE(HDF5 COMPONENTS CXX REQUIRED)
#Enable testing.
enable_testing()
#Add the I/O, data structures and reactor directories
add_subdirectory(src/native/org.eclipse.ice.io.native)
add_subdirectory(src/native/org.eclipse.ice.datastructures.native)
add_subdirectory(src/native/org.eclipse.ice.reactor.native)
add_subdirectory(src/native/org.eclipse.ice.reactor.sfr.native)
#Add the test directories
add_subdirectory(tests/native/org.eclipse.ice.io.native.test)
add_subdirectory(tests/native/org.eclipse.ice.reactor.native.test)
add_subdirectory(tests/native/org.eclipse.ice.reactor.sfr.native.test)
add_subdirectory(examples)
# The Doxyfile.in and UseDoxygen.cmake files are not in the git repo. --jdeyton 20150129
#Create the documentation directory and set up the doc target.
#set(DOC_DIR "${CMAKE_BINARY_DIR}/documentation")
#if(NOT EXISTS ${DOC_DIR})
# execute_process(COMMAND ${CMAKE_COMMAND} -E make_directory "${DOC_DIR}")
#endif(NOT EXISTS ${DOC_DIR})
#set(DOXYFILE_OUTPUT_DIR "${DOC_DIR}")
#set(DOXYFILE_LATEX "ON")
#set(CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}")
#include(UseDoxygen REQUIRED)