Page MenuHomeHEPForge

No OneTemporary

diff --git a/FixedOrderGen/CMakeLists.txt b/FixedOrderGen/CMakeLists.txt
new file mode 100644
index 0000000..03597d1
--- /dev/null
+++ b/FixedOrderGen/CMakeLists.txt
@@ -0,0 +1,65 @@
+cmake_minimum_required(VERSION 2.8 FATAL_ERROR)
+
+set(CMAKE_LEGACY_CYGWIN_WIN32 0)
+set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
+
+project("Fixed Order Generation" C CXX)
+
+## Flags for the compiler. No warning allowed.
+if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
+ set(warnings "-Wall -Wextra -Werror -std=c++1y")
+elseif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
+ set(warnings "-Wall -Wextra -Werror -std=c++11")
+elseif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "MSVC")
+ set(warnings "/W4 /WX /EHsc")
+endif()
+if (NOT CONFIGURED_ONCE)
+ set(CMAKE_CXX_FLAGS "${warnings}"
+ CACHE STRING "Flags used by the compiler during all build types." FORCE)
+ set(CMAKE_C_FLAGS "${warnings}"
+ CACHE STRING "Flags used by the compiler during all build types." FORCE)
+endif()
+
+
+## Add directories and find dependences
+include_directories(${CMAKE_CURRENT_SOURCE_DIR}/include)
+set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/Modules/")
+
+find_library(rhej)
+find_package(fastjet REQUIRED)
+find_package(clhep REQUIRED)
+find_package(lhapdf REQUIRED)
+find_package(gsl REQUIRED)
+find_package(Boost REQUIRED COMPONENTS iostreams)
+find_package(HepMC 3)
+if(${HepMC_FOUND})
+ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DRHEJ_BUILD_WITH_HepMC")
+endif()
+find_package(QCDloop 2)
+if(${QCDloop_FOUND})
+ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DRHEJ_BUILD_WITH_QCDLOOP")
+ include_directories(SYSTEM ${QCDloop_INCLUDE_PATH})
+endif()
+
+include_directories(SYSTEM ${lhapdf_INCLUDE_PATH})
+include_directories(SYSTEM ${fastjet_INCLUDE_PATH})
+include_directories(SYSTEM ${clhep_INCLUDE_PATH})
+include_directories(SYSTEM ${gsl_INCLUDE_PATH})
+
+add_subdirectory(src)
+
+## define executable
+file(GLOB FOgen_source ${CMAKE_CURRENT_SOURCE_DIR}/src/*.cc)
+add_executable(FOgen src/main.cc ${FOgen_source})
+
+## link libraries
+target_link_libraries(rHEJ rhej)
+
+file(GLOB FOgen_headers ${CMAKE_CURRENT_SOURCE_DIR}/include/*.hh)
+install(TARGETS FOgen DESTINATION bin)
+
+enable_testing()
+set(tst_dir "${CMAKE_CURRENT_SOURCE_DIR}/t")
+
+set(CONFIGURED_ONCE TRUE CACHE INTERNAL
+ "A flag showing that CMake has configured at least once.")

File Metadata

Mime Type
text/x-diff
Expires
Tue, Jan 21, 2:16 AM (1 d, 21 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
4243620
Default Alt Text
(2 KB)

Event Timeline