-
Notifications
You must be signed in to change notification settings - Fork 122
/
CMakeLists.txt
38 lines (29 loc) · 1.25 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
set ( SRC_FILES src/BroadcastWorkspace.cpp
src/GatherWorkspaces.cpp
)
set ( INC_FILES inc/MantidMPIAlgorithms/BroadcastWorkspace.h
inc/MantidMPIAlgorithms/GatherWorkspaces.h
inc/MantidMPIAlgorithms/MPISerialization.h
)
set ( TEST_FILES BroadcastWorkspaceTest.h
GatherWorkspacesTest.h
)
if (COVERALLS)
foreach( loop_var ${SRC_FILES} ${INC_FILES})
set_property(GLOBAL APPEND PROPERTY COVERAGE_SRCS "${CMAKE_CURRENT_SOURCE_DIR}/${loop_var}")
endforeach(loop_var)
endif()
# Add the target for this directory
add_library ( MPIAlgorithms ${SRC_FILES} ${INC_FILES} )
# Set the name of the generated library
set_target_properties ( MPIAlgorithms PROPERTIES OUTPUT_NAME MantidMPIAlgorithms )
# Add to the 'Framework' group in VS
set_property ( TARGET Algorithms PROPERTY FOLDER "MantidFramework" )
include_directories ( inc )
target_link_libraries ( MPIAlgorithms ${MANTIDLIBS} )
# Add the unit tests directory
add_subdirectory ( test )
###########################################################################
# Installation settings
###########################################################################
install ( TARGETS MPIAlgorithms ${SYSTEM_PACKAGE_TARGET} DESTINATION ${PLUGINS_DIR} )