-
Notifications
You must be signed in to change notification settings - Fork 8
/
apps.cmake
49 lines (42 loc) · 1.34 KB
/
apps.cmake
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
set(APPS matrix_factorization knowledge_graph_embeddings word2vec simple)
add_executable(matrix_factorization ${PROJECT_SOURCE_DIR}/apps/matrix_factorization.cc)
target_include_directories(matrix_factorization PUBLIC ${INCS})
target_link_libraries(matrix_factorization
PUBLIC pthread
PUBLIC adapm
PUBLIC Eigen3::Eigen
PUBLIC Boost::system
PUBLIC Boost::program_options
)
find_package(OpenMP)
add_executable(knowledge_graph_embeddings ${PROJECT_SOURCE_DIR}/apps/knowledge_graph_embeddings.cc)
target_include_directories(knowledge_graph_embeddings PUBLIC ${INCS})
target_link_libraries(knowledge_graph_embeddings
PUBLIC pthread
PUBLIC adapm
PUBLIC Boost::system
PUBLIC Boost::program_options
PUBLIC OpenMP::OpenMP_CXX
)
add_executable(word2vec ${PROJECT_SOURCE_DIR}/apps/word2vec.cc)
target_include_directories(word2vec PUBLIC ${INCS})
target_link_libraries(word2vec
PUBLIC pthread
PUBLIC adapm
PUBLIC Boost::system
PUBLIC Boost::program_options
)
add_executable(simple ${PROJECT_SOURCE_DIR}/apps/simple.cc)
target_include_directories(simple PUBLIC ${INCS})
target_link_libraries(simple
PUBLIC pthread
PUBLIC adapm
PUBLIC Boost::system
PUBLIC Boost::program_options
)
set_target_properties(${APPS}
PROPERTIES
RUNTIME_OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/apps"
)
add_custom_target(apps)
add_dependencies(apps ${APPS})