Created
March 7, 2016 04:54
-
-
Save yuasatakayuki/04e51271b41ca3c43957 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ####### CMakeLists.txt for RubySpaceWire | |
| cmake_minimum_required(VERSION 2.8) | |
| ### Initial definition of cmake variables | |
| set(CMAKE_INSTALL_PREFIX $ENV{HOME} CACHE PATH "install prefix") | |
| set(CMAKE_BUILD_TYPE Release CACHE STRING "build type") | |
| set(CMAKE_CXX_FLAGS_DEBUG "-g -W -Wall" CACHE STRING "CXX_FLAGS for debug") | |
| set(CMAKE_C_FLAGS_DEBUG "-g -W -Wall" CACHE STRING "C_FLAGS for debug") | |
| set(CMAKE_CXX_FLAGS_RELEASE "-O3 -W -Wall" CACHE STRING "CXX_FLAGS for release") | |
| set(CMAKE_C_FLAGS_RELEASE "-O3 -W -Wall" CACHE STRING "C_FLAGS for release") | |
| ### Definition of project | |
| project(RubyROOT) | |
| message("-- Install destination prefix: ${CMAKE_INSTALL_PREFIX}") | |
| set(CMAKE_MODULE_PATH ${RubyROOT_SOURCE_DIR}/cmake ${CMAKE_MODULE_PATH}) | |
| ### Options | |
| option(ENABLE_MINUIT2 "enable Munuit2" OFF) | |
| ### External libraries | |
| ### ROOT ### | |
| set(ROOTSYS $ENV{ROOTSYS}) | |
| if(ENABLE_MINUIT2) | |
| set(ROOT_MINUIT2_LIB Minuit2) | |
| endif() | |
| find_path(ROOT_INC_DIR | |
| NAMES TH1.h TTree.h | |
| PATHS ${ROOTSYS}/include/root ${ROOTSYS}/include) | |
| find_path(ROOT_LIB_DIR | |
| NAMES libHist.so libTree.so | |
| PATHS ${ROOTSYS}/lib/root ${ROOTSYS}/lib) | |
| set(ROOT_LIB | |
| Core Cint RIO Net Hist Graf Graf3d Gpad Tree | |
| Rint Postscript Matrix Physics MathCore Thread | |
| ${ROOT_MINUIT2_LIB}) | |
| message("-- ROOTSYS = ${ROOTSYS}") | |
| message("-- ROOT_INC_DIR = ${ROOT_INC_DIR}") | |
| message("-- ROOT_LIB_DIR = ${ROOT_LIB_DIR}") | |
| ### subdirecties | |
| add_subdirectory(ruby) | |
| ### END |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment