Newer
Older
set ( SRC_FILES
src/ScriptRepositoryImpl.cpp
set ( INC_FILES
inc/MantidScriptRepository/ScriptRepositoryImpl.h
ScriptRepositoryTestImpl.h
)
if (COVERALLS)
foreach( loop_var ${SRCS_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 ( ScriptRepository ${SRC_FILES} ${INC_FILES} )
# Add the unit tests directory
add_subdirectory ( test )
# Set the name of the generated library
set_target_properties ( ScriptRepository PROPERTIES OUTPUT_NAME MantidScriptRepository
COMPILE_DEFINITIONS IN_MANTID_SCRIPTREPO )
if (OSX_VERSION VERSION_GREATER 10.8)
set_target_properties ( ScriptRepository PROPERTIES INSTALL_RPATH "@loader_path/../Contents/MacOS")
endif ()
set_property (TARGET ScriptRepository PROPERTY FOLDER "MantidFramework")
target_link_libraries(ScriptRepository LINK_PRIVATE ${TCMALLOC_LIBRARIES_LINKTIME} ${LIBS} ${JSONCPP_LIBRARIES})
install (TARGETS ScriptRepository ${SYSTEM_PACKAGE_TARGET} DESTINATION ${PLUGINS_DIR} )