-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathCMakeLists.txt
66 lines (55 loc) · 1.51 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
cmake_minimum_required(VERSION 3.12)
project(
Mirage
VERSION 2.0.0
HOMEPAGE_URL https://github.com/TravisWheelerLab/Mirage
)
set(CMAKE_C_STANDARD 11)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY build)
add_executable(
MultiSeqNW
src/MultiSeqNW.c
src/BasicBio.c
)
target_link_libraries(MultiSeqNW m)
install(TARGETS MultiSeqNW RUNTIME)
add_executable(
ExonWeaver
src/ExonWeaver.c
src/BasicBio.c
)
target_link_libraries(ExonWeaver m)
install(TARGETS ExonWeaver RUNTIME)
add_executable(
FastMap2
src/FastMap2.c
src/BasicBio.c
)
target_link_libraries(FastMap2 m)
install(TARGETS FastMap2 RUNTIME)
# Custom target for handling dependencies, Perl scripts, and shell scripts. We
# just move all these files to the build directory to aid in distribution and
# installation. These will be automatically run by the build.
add_custom_target(
build-perl ALL
COMMAND cp
${CMAKE_SOURCE_DIR}/src/*.pl
${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/
COMMAND cp
${CMAKE_SOURCE_DIR}/src/*.pm
${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/
)
add_custom_target(
build-shell ALL
COMMAND cp
${CMAKE_SOURCE_DIR}/src/run_mirage2.sh
${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/mirage2
COMMAND ln
-sf ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/mirage2
${CMAKE_SOURCE_DIR}/mirage2
)
add_custom_target(
build-dependencies ALL
COMMAND ${CMAKE_SOURCE_DIR}/src/install-dependencies.sh
VERBATIM
)