File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
2020To 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+
2261Contribute
2362---------------
2463
You can’t perform that action at this time.
0 commit comments