Skip to content
Snippets Groups Projects
Commit c001a83d authored by Viktor's avatar Viktor
Browse files

initial commit

parents
No related branches found
No related tags found
No related merge requests found
cmake_minimum_required(VERSION 2.8)
project(flow)
set(CMAKE_MACOSX_RPATH 1)
set(CMAKE_cpp_STANDARD 14)
set(CMAKE_BUILD_TYPE debug)
set(DATATREE ~/Soft/DataTree)
set(INTERFACE_SOURCES
datatree_interface/DataFiller.cpp
)
string(REPLACE ".cpp" ".h" INTERFACE_HEADERS "${INTERFACE_SOURCES}")
set(CMAKE_VERBOSE_MAKEFILE ON)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall")
# Telling CMake where to find the ROOT installation.
list(APPEND CMAKE_PREFIX_PATH $ENV{ROOTSYS})
list(APPEND CMAKE_PREFIX_PATH "${CMAKE_SOURCE_DIR}/lib")
#---Locate the ROOT package and defines a number of variables (e.g. ROOT_INCLUDE_DIRS)
find_package(ROOT REQUIRED COMPONENTS Core MathCore RIO Hist Tree Net TreePlayer)
# Define useful ROOT functions and macros (e.g. ROOT_GENERATE_DICTIONARY)
include(${ROOT_USE_FILE})
add_definitions(${ROOT_CXX_FLAGS})
# Adding libraries and includes
#find_path(BASE_INC DataContainer.h HINTS "${CMAKE_SOURCE_DIR}/Base")
include_directories(${CMAKE_SOURCE_DIR} ${ROOT_INCLUDE_DIRS} ${DATATREE}/include)
ROOT_GENERATE_DICTIONARY(G__Interface ${INTERFACE_HEADERS} LINKDEF CentralityLinkDef.h)
add_library(interface SHARED ${INTERFACE_SOURCES} G__Interface)
target_link_libraries(interface ${ROOT_LIBRARIES} "${DATATREE}/build/libDataTree.so")
# Create a main program using the library
# add_executable(main ${EXE_SOURCES})
# target_link_libraries(main centrality ${ROOT_LIBRARIES})
# target_include_directories(main PUBLIC ${QNCORRECT_INC})
#ifdef __CINT__
#pragma link off all globals;
#pragma link off all classes;
#pragma link off all functions;
#endif
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment