-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
executable file
·51 lines (44 loc) · 1.4 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
cmake_minimum_required(VERSION 3.5)
project(genomeMaker)
#// Project flags
set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_FLAGS " ${CMAKE_CXX_FLAGS} -std=c++14 -pthread")
#// Setting the build output to ./build
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/builds/")
#// GenomeMaker build
set(SOURCE_FILES
src/tools/Randomiser.cpp
src/tools/Randomiser.h
src/tools/GenomeCreator.cpp
src/tools/GenomeCreator.h
src/gmaker.cpp
src/tools/SequencerSim.cpp
src/tools/SequencerSim.h
src/containers/FileOptions.h
src/cli/cli.h
src/cli/cli.cpp src/containers/Buffers.h)
include_directories(include)
add_executable(
genomeMaker
${SOURCE_FILES})
#// GTest framework for unit testing
enable_testing()
find_package(GTest QUIET)
if( GTEST_FOUND )
include_directories(${GTEST_INCLUDE_DIRS})
set(TEST_FILES
tests/GenomeCreator_Tests.cpp
tests/main.cpp
tests/MOCK_Randomiser.h
tests/MOCK_Writer.h
tests/MOCK_Reader.h
tests/SequencerSim_Tests.cpp)
add_executable(
genomeMaker_Tests
${TEST_FILES})
target_link_libraries(genomeMaker_Tests gtest)
add_test(genomeMaker_Tests ${TEST_FILES})
else()
message(WARNING, "Google Test package not found. Unit tests will not be compiled...")
endif()