-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
43 lines (38 loc) · 1.08 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
add_library(utils
eigendecomposition.cpp eigendecomposition.h
gzstream.cpp gzstream.h
optimization.cpp optimization.h
stoprule.cpp stoprule.h
tools.cpp tools.h
pllnni.cpp pllnni.h
checkpoint.cpp checkpoint.h
MPIHelper.cpp MPIHelper.h
starttree.cpp starttree.h
bionj.cpp bionj2.cpp bionj2.h
progress.cpp progress.h
timeutil.h hammingdistance.h
operatingsystem.cpp operatingsystem.h
heapsort.h
)
if(ZLIB_FOUND)
target_link_libraries(utils ${ZLIB_LIBRARIES})
else(ZLIB_FOUND)
target_link_libraries(utils zlibstatic)
endif(ZLIB_FOUND)
target_link_libraries(utils lbfgsb sprng)
add_executable(decentTree
decenttree.cpp
starttree.cpp bionj.cpp bionj2.cpp
gzstream.cpp progress.cpp operatingsystem.cpp)
if(ZLIB_FOUND)
target_link_libraries(decentTree ${ZLIB_LIBRARIES})
else(ZLIB_FOUND)
target_link_libraries(decentTree zlibstatic)
endif(ZLIB_FOUND)
if(CLANG AND WIN32)
if (BINARY32)
target_link_libraries(decentTree ${PROJECT_SOURCE_DIR}/lib32/libiomp5md.dll)
else()
target_link_libraries(decentTree ${PROJECT_SOURCE_DIR}/lib/libiomp5md.dll)
endif()
endif()