Skip to content

Commit 5d1e08b

Browse files
author
Benjamin Linard
committed
Merge branch 'main' of github.com:blinard-BIOINFO/libtfmpvalue
2 parents c2f696d + dacaf7c commit 5d1e08b

1 file changed

Lines changed: 40 additions & 1 deletion

File tree

README.md

Lines changed: 40 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,50 @@ Original sources can be found at http://bioinfo.lifl.fr/tfm-pvalue/tfm-pvalue.ph
1414

1515
**This project has been archived and is provided as-is, with no additional support or development.**
1616

17-
Installation
17+
Cmake installation
1818
---------------
1919

2020
To use the library, add these lines to your `CMakeLists.txt` file :
2121

22+
```cmake
23+
24+
########################
25+
## LIBRARY RETRIEVAL
26+
27+
# options that can be set ON or OFF
28+
option(DEBUG_TFMPVALUE "If on, no optimisations and all warnings" OFF)
29+
option(BUILD_TFMPVALUE_BINARIES "Build binaries on top of library (pv2sc,sc2pv,...)" OFF)
30+
option(RUN_TFMPVALUE_TESTS "Run libtfmpvalue cmake tests" OFF)
31+
32+
# source retrival & static library build
33+
FetchContent_Declare(
34+
libtfmpvalue
35+
GIT_REPOSITORY "https://github.com/blinard-BIOINFO/libtfmpvalue.git"
36+
GIT_TAG "35e68bc114a5339aed3d82ad5f01af641b2064ca"
37+
)
38+
FetchContent_MakeAvailable(libtfmpvalue)
39+
add_library(libtfmpvalue STATIC IMPORTED)
40+
set_target_properties(libtfmpvalue PROPERTIES IMPORTED_LOCATION ${libtfmpvalue_BINARY_DIR}/libtfmpvalue.a)
41+
42+
43+
########################
44+
## YOUR CMAKE TARGET
45+
46+
add_executable(
47+
mybinary
48+
src/main.cpp
49+
)
50+
target_include_directories(
51+
mybinary
52+
${libtfmpvalue_SOURCE_DIR}/include # <-- !
53+
)
54+
target_link_libraries(
55+
mybinary
56+
PRIVATE
57+
libtfmpvalue # <-- !
58+
)
59+
```
60+
2261
Contribute
2362
---------------
2463

0 commit comments

Comments
 (0)