diff --git a/CMakeLists.txt b/CMakeLists.txt index 24c5b8f..4ccfd73 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -10,6 +10,8 @@ include(${ROOT_USE_FILE}) set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin) set(CMAKE_INSTALL_BINDIR "bin" CACHE PATH "user executables (bin)") +set(CMAKE_INSTALL_INCLUDEDIR "include" CACHE PATH "header files") +set(CMAKE_INSTALL_LIBDIR "lib" CACHE PATH "libraries") if(ccache) set(CMAKE_C_COMPILER_LAUNCHER ccache) diff --git a/default.nix b/default.nix new file mode 100644 index 0000000..be897a6 --- /dev/null +++ b/default.nix @@ -0,0 +1,17 @@ +with import { }; + +clangStdenv.mkDerivation { + name = "roofit"; + src = ./.; + + buildInputs = [ + (root.overrideAttrs (old: { cmakeFlags = old.cmakeFlags ++ [ "-Droofit=OFF -Dtmva=OFF" ]; })) + cmake + gtest + gsl + pkg-config + ]; + + cmakeFlags = [ + ]; +} diff --git a/settings-dev.cmake b/settings-dev.cmake new file mode 100644 index 0000000..6a8496f --- /dev/null +++ b/settings-dev.cmake @@ -0,0 +1,7 @@ +set (CMAKE_BUILD_TYPE RelWithDebInfo CACHE STRING "" FORCE) +set (CMAKE_INSTALL_PREFIX ../install CACHE STRING "" FORCE) +set (CMAKE_INSTALL_BINDIR bin CACHE STRING "" FORCE) +set (CMAKE_INSTALL_INCLUDEDIR include CACHE STRING "" FORCE) +set (CMAKE_INSTALL_LIBDIR lib CACHE STRING "" FORCE) +set (testing ON CACHE BOOL "" FORCE) +set (mathmore ON CACHE BOOL "" FORCE) diff --git a/setup.fish b/setup.fish index cc00238..cedd707 100644 --- a/setup.fish +++ b/setup.fish @@ -1,2 +1,3 @@ set -g ROOT_INCLUDE_PATH $PWD/install/include set -g -a LD_LIBRARY_PATH $PWD/install/lib +set -g -a DYLD_LIBRARY_PATH $PWD/install/lib diff --git a/setup.sh b/setup.sh new file mode 100644 index 0000000..a222f14 --- /dev/null +++ b/setup.sh @@ -0,0 +1,3 @@ +export ROOT_INCLUDE_PATH=$PWD/install/include +export LD_LIBRARY_PATH=$PWD/install/lib:$LD_LIBRARY_PATH +export DYLD_LIBRARY_PATH=$PWD/install/lib:$DYLD_LIBRARY_PATH