| 1 |
From: Michael R. Crusoe <[email protected]> |
| 2 |
Subject: use packaged libraries |
| 3 |
Forwarded: not-needed |
| 4 |
--- iqtree.orig/CMakeLists.txt |
| 5 |
+++ iqtree/CMakeLists.txt |
| 6 |
@@ -132,7 +132,6 @@ |
| 7 |
endif() |
| 8 |
|
| 9 |
include_directories("${PROJECT_SOURCE_DIR}") |
| 10 |
|
| 11 |
include_directories(after system "/usr/local/include") |
| 12 |
|
| 13 |
################################################################## |
| 14 |
@@ -758,7 +757,7 @@ |
| 15 |
option(YAML_CPP_BUILD_TOOLS "Enable parse tools" OFF) |
| 16 |
option(YAML_CPP_BUILD_CONTRIB "Enable contrib stuff in library" OFF) |
| 17 |
option(YAML_CPP_INSTALL "Enable generation of install target" OFF) |
| 18 |
|
| 19 |
+find_package(yaml-cpp) |
| 20 |
add_subdirectory(phylo-yaml) |
| 21 |
|
| 22 |
if (USE_TERRAPHAST) |
| 23 |
@@ -821,9 +820,9 @@ |
| 24 |
|
| 25 |
if (NOT IQTREE_FLAGS MATCHES "avx" AND NOT IQTREE_FLAGS MATCHES "fma") |
| 26 |
if (NOT IQTREE_FLAGS MATCHES "nosse") |
| 27 |
|
| 28 |
+ set_target_properties(iqtree2 ncl nclextra utils pda lbfgsb whtest sprng vectorclass model gsl alignment tree simulator phyloYAML main ${TARGET_CMAPLE} PROPERTIES COMPILE_FLAGS "${SSE_FLAGS}") |
| 29 |
if (USE_CMAPLE_AA STREQUAL "ON") |
| 30 |
|
| 31 |
+ set_target_properties(iqtree2-aa ncl nclextra utils pda lbfgsb whtest sprng vectorclass model gsl alignment tree simulator phyloYAML main-aa maple-aa PROPERTIES COMPILE_FLAGS "${SSE_FLAGS}") |
| 32 |
endif() |
| 33 |
if (USE_TERRAPHAST) |
| 34 |
set_target_properties(terracetphast terraphast PROPERTIES COMPILE_FLAGS "${SSE_FLAGS}") |
| 35 |
@@ -875,11 +874,11 @@ |
| 36 |
|
| 37 |
# basic linking librararies |
| 38 |
target_link_libraries(iqtree2 pll ncl nclextra utils pda lbfgsb whtest sprng vectorclass model |
| 39 |
|
| 40 |
+ gsl alignment tree simulator terrace phyloYAML main ${TARGET_CMAPLE} ${PLATFORM_LIB} ${STD_LIB} ${THREAD_LIB} ${ATOMIC_LIB}) |
| 41 |
|
| 42 |
if (USE_CMAPLE_AA STREQUAL "ON") |
| 43 |
target_link_libraries(iqtree2-aa pll ncl nclextra utils pda lbfgsb whtest sprng vectorclass model |
| 44 |
|
| 45 |
+ gsl alignment tree simulator terrace phyloYAML main-aa maple-aa ${PLATFORM_LIB} ${STD_LIB} ${THREAD_LIB} ${ATOMIC_LIB}) |
| 46 |
endif() |
| 47 |
|
| 48 |
if (USE_TERRAPHAST) |
| 49 |
--- iqtree.orig/cmaple/CMakeLists.txt |
| 50 |
+++ iqtree/cmaple/CMakeLists.txt |
| 51 |
@@ -274,7 +274,8 @@ |
| 52 |
) |
| 53 |
# For Windows: Prevent overriding the parent project's compiler/linker settings |
| 54 |
set(gtest_force_shared_crt ON CACHE BOOL "" FORCE) |
| 55 |
|
| 56 |
+add_subdirectory(/usr/src/googletest googletest EXCLUDE_FROM_ALL) |
| 57 |
+include_directories(/usr/share/googletest) |
| 58 |
|
| 59 |
################################################################## |
| 60 |
# subdirectories containing necessary libraries for the build |
| 61 |
@@ -287,8 +288,6 @@ |
| 62 |
add_subdirectory(libraries/nclextra) |
| 63 |
endif() |
| 64 |
add_subdirectory(utils) |
| 65 |
|
| 66 |
|
| 67 |
add_subdirectory(model) |
| 68 |
add_subdirectory(alignment) |
| 69 |
add_subdirectory(tree) |