Newer
Older
option(CHAOS_MEMCACHE_TEST "Memcached test" OFF)
option(CHAOS_ARCHITECTURE_TEST "Architecture tests" ON)
IF (DEFINED ENV{CHAOS_BUNDLE} )
include($ENV{CHAOS_BUNDLE}/tools/project_template/CMakeChaos.txt)
ELSE()
IF(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
# Mac OS X specific code
MESSAGE(status "enabling MAC compulation")
SET(FrameworkLib boost_program_options boost_date_time boost_system boost_chrono boost_regex boost_log_setup boost_log boost_filesystem boost_thread boost_atomic zmq jsoncpp pthread dl)
SET(FrameworkLib boost_program_options boost_date_time boost_system boost_chrono boost_regex boost_log_setup boost_log boost_filesystem boost_thread boost_atomic zmq jsoncpp pthread rt dl)
ENDIF(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
SET( ${PROJECT_NAME}_MAJOR_VERSION 0 )
SET( ${PROJECT_NAME}_MINOR_VERSION 1 )
SET( ${PROJECT_NAME}_PATCH_LEVEL 0 )
EXECUTE_PROCESS(COMMAND chaos/common/version.sh)

Andrea Michelotti
committed
ADD_DEFINITIONS(-O3 )
INCLUDE_DIRECTORIES(. ../ ../../ ${CMAKE_INSTALL_PREFIX}/include)

Andrea Michelotti
committed
IF(NOT BUILD_PREFIX)
set (BUILD_PREFIX usr/local)
ENDIF()

Andrea Michelotti
committed
message(STATUS "Using ${BUILD_PREFIX} as installation directory")
SET(CMAKE_FIND_LIBRARY_SUFFIXES ".a")

Claudio Bisegni
committed
message(STATUS "Configure Common Layer")
ADD_SUBDIRECTORY(chaos/common)

Claudio Bisegni
committed
message(STATUS "Configure CUToolkit Layer")
ADD_SUBDIRECTORY(chaos/cu_toolkit)

Claudio Bisegni
committed
message(STATUS "Configure UIToolkit Layer")
ADD_SUBDIRECTORY(chaos/ui_toolkit)
message(STATUS "Configure Chaos Metadata Service")
ADD_SUBDIRECTORY(ChaosMetadataService)

Claudio Bisegni
committed
message(STATUS "Configure Chaos Metadata Service Client Library")
ADD_SUBDIRECTORY(ChaosMetadataServiceClient)

Claudio Bisegni
committed
message(STATUS "Configure Chaos Metadata Service Client Library Test Application")
ADD_SUBDIRECTORY(ChaosMetadataServiceClientTest)
message(STATUS "Configure Chaos WAN Proxy")
ADD_SUBDIRECTORY(ChaosWANProxy)

Claudio Bisegni
committed
IF (NOT CHAOS_NO_MONGO)

Claudio Bisegni
committed
message(STATUS "Configure Chaos Data Service")
ADD_SUBDIRECTORY(ChaosDataService)
message(STATUS "Configure Chaos Data Export")
ADD_SUBDIRECTORY(ChaosDataExport)

Claudio Bisegni
committed
message(STATUS "Configure Chaos CLI")
ADD_SUBDIRECTORY(example/ChaosCLI)

Claudio Bisegni
committed

Andrea Michelotti
committed
message(STATUS "Configure Chaos ChaosMDSCmd")
ADD_SUBDIRECTORY(example/ChaosMDSCmd)

Andrea Michelotti
committed
message(STATUS "Configure Chaos Performance Tester")
ADD_SUBDIRECTORY(example/ChaosPerformanceTester)
#message(STATUS "Configure Control Unit Test examples")
#ADD_SUBDIRECTORY(example/ControlUnitTest bin/bin_example_cutest)

Andrea Michelotti
committed
#message(STATUS "Configure BenchTest simulation excutable")
#ADD_SUBDIRECTORY(example/BenchTest bin/bench_test)
IF (CHAOS_MEMCACHE_TEST)
message(STATUS "Configure ChaosMemCacheTest test excutable")
ADD_SUBDIRECTORY(test/MemcachedEmbeddedTest)
ENDIF()
IF (CHAOS_ARCHITECTURE_TEST)
message(STATUS "Configure ChaosArchitectureTests test excutable")
ADD_SUBDIRECTORY(ArchitectureTests)
ENDIF()
# message(STATUS "Configure Chaos Snapshot Utility")
# ADD_SUBDIRECTORY(ChaosSnapshotUtility/ChaosSnapshotUtility bin/chaos_snap_util)
#message(STATUS "Configure Plugin Test")
#ADD_SUBDIRECTORY(test/PluginTest bin/plugin_test)