|
| 1 | +cmake_minimum_required (VERSION 3.10) |
| 2 | + |
| 3 | +set(CMAKE_CXX_COMPILER g++-7) |
| 4 | + |
| 5 | +project (identity) |
| 6 | + |
| 7 | +set(CMAKE_BINARY_DIR ${CMAKE_SOURCE_DIR}/bin) |
| 8 | +set(EXECUTABLE_OUTPUT_PATH ${CMAKE_BINARY_DIR}) |
| 9 | +set(LIBRARY_OUTPUT_PATH ${CMAKE_BINARY_DIR}) |
| 10 | + |
| 11 | +set(SOURCES |
| 12 | +${CMAKE_SOURCE_DIR}/src/Aligner.cpp |
| 13 | +${CMAKE_SOURCE_DIR}/src/FastaReader.cpp |
| 14 | +${CMAKE_SOURCE_DIR}/src/Mutator.cpp |
| 15 | +${CMAKE_SOURCE_DIR}/src/ReaderAlignerCoordinator.cpp |
| 16 | +${CMAKE_SOURCE_DIR}/src/Parameters.cpp |
| 17 | +${CMAKE_SOURCE_DIR}/src/Matrix.cpp |
| 18 | +${CMAKE_SOURCE_DIR}/src/DataGenerator.cpp |
| 19 | +${CMAKE_SOURCE_DIR}/src/SynDataGenerator.cpp |
| 20 | +${CMAKE_SOURCE_DIR}/src/GLMClassifier.cpp |
| 21 | +${CMAKE_SOURCE_DIR}/src/GLMRegressor.cpp |
| 22 | +${CMAKE_SOURCE_DIR}/src/Normalizer.cpp |
| 23 | +${CMAKE_SOURCE_DIR}/src/SimConverter.cpp |
| 24 | +${CMAKE_SOURCE_DIR}/src/FeatureExpander.cpp |
| 25 | +${CMAKE_SOURCE_DIR}/src/GLM.cpp |
| 26 | +${CMAKE_SOURCE_DIR}/src/Node.cpp |
| 27 | +${CMAKE_SOURCE_DIR}/src/Evaluator.cpp |
| 28 | +${CMAKE_SOURCE_DIR}/src/Feature.cpp |
| 29 | +${CMAKE_SOURCE_DIR}/src/FeatureSquared.cpp |
| 30 | +${CMAKE_SOURCE_DIR}/src/FeaturePaired.cpp |
| 31 | +${CMAKE_SOURCE_DIR}/src/StatisticInfo.cpp |
| 32 | +${CMAKE_SOURCE_DIR}/src/ITransformer.cpp |
| 33 | +${CMAKE_SOURCE_DIR}/src/Identity.cpp |
| 34 | +${CMAKE_SOURCE_DIR}/src/GLMPredictor.cpp |
| 35 | +) |
| 36 | + |
| 37 | +set(HEADER_FILES |
| 38 | +${CMAKE_SOURCE_DIR}/src/KmerHistogram.h |
| 39 | +${CMAKE_SOURCE_DIR}/src/Statistician.h |
| 40 | +${CMAKE_SOURCE_DIR}/src/BestFirst.h |
| 41 | +${CMAKE_SOURCE_DIR}/src/LockFreeQueue.h |
| 42 | +${CMAKE_SOURCE_DIR}/src/AlignerParallel.h |
| 43 | +) |
| 44 | + |
| 45 | +set (CMAKE_CXX_STANDARD 17) |
| 46 | +set (CMAKE_CXX_FLAGS " -O3 -ffast-math -fopenmp -fmessage-length=0") |
| 47 | + |
| 48 | +add_executable(identity ${CMAKE_SOURCE_DIR}/src/Identity.cpp ${SOURCES} ${HEADER_FILES}) |
| 49 | + |
0 commit comments