-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
50 lines (38 loc) · 1.37 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
cmake_minimum_required(VERSION 2.6 FATAL_ERROR)
add_subdirectory(cmake)
# STaRS, Scalable Task Routing approach to distributed Scheduling
project(stars)
# Generate test cases for CTest
enable_testing()
# Check dependencies
find_package(Boost 1.46 REQUIRED date_time filesystem program_options system thread unit_test_framework iostreams signals)
find_package(Sqlite3 REQUIRED)
find_package(Log4CPP REQUIRED)
find_package(MsgPack REQUIRED)
find_package(Wt)
# The version number.
set (STaRS_VERSION_MAJOR 0)
set (STaRS_VERSION_MINOR 1-alpha)
# configure a header file to pass some of the CMake settings
# to the source code
configure_file (
"${PROJECT_SOURCE_DIR}/include/config.h.in"
"${PROJECT_BINARY_DIR}/config.h"
)
# add the binary tree to the search path for include files
# so that we will find config.h
include_directories("${PROJECT_BINARY_DIR}")
message(STATUS "Building STaRS version " ${STaRS_VERSION_MAJOR} "." ${STaRS_VERSION_MINOR} " build " ${CMAKE_BUILD_TYPE})
set (CMAKE_CXX_FLAGS -std=c++11)
if (NOT CMAKE_BUILD_TYPE STREQUAL Release)
set (BIN_SUFFIX -${CMAKE_BUILD_TYPE})
endif (NOT CMAKE_BUILD_TYPE STREQUAL Release)
# Common names
set(STARS_LIBRARIES stars${BIN_SUFFIX})
set(STARS_DB_LIBRARIES stars_db${BIN_SUFFIX})
# Web UI library
if (Wt_FOUND)
set (STARS_UI_LIBRARIES stars_ui${BIN_SUFFIX})
endif (Wt_FOUND)
add_subdirectory(src)
add_subdirectory(doc)