Merge pull request #55 from gijzelaerr/install

add missing install and SO version
This commit is contained in:
Sarod Yatawatta 2018-08-27 23:20:56 +02:00 committed by GitHub
commit 97a6e8387f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 14 additions and 0 deletions

View File

@ -36,3 +36,7 @@ target_link_libraries(sagecal
-ldirac -ldirac
-lradio -lradio
) )
install(TARGETS sagecal DESTINATION bin)

View File

@ -62,6 +62,11 @@ message (STATUS "lib/Dirac objects --> ${objects}")
include_directories(./) include_directories(./)
foreach (object ${objects}) foreach (object ${objects})
add_library(${object} SHARED ${object}.c) add_library(${object} SHARED ${object}.c)
SET_TARGET_PROPERTIES(${object} PROPERTIES SOVERSION 0.0)
endforeach (object) endforeach (object)
add_library(dirac ${objects} Dirac.h) add_library(dirac ${objects} Dirac.h)
SET_TARGET_PROPERTIES(dirac PROPERTIES SOVERSION 0.0)
install(TARGETS ${objects} dirac DESTINATION lib)

View File

@ -44,9 +44,13 @@ include_directories(${GLIB_PKG_INCLUDE_DIRS})
foreach (object ${objects}) foreach (object ${objects})
add_library(${object} ${object}.c) add_library(${object} ${object}.c)
SET_TARGET_PROPERTIES(${object} PROPERTIES SOVERSION 0.0)
endforeach (object) endforeach (object)
add_library(radio ${objects} Radio.h) add_library(radio ${objects} Radio.h)
SET_TARGET_PROPERTIES(radio PROPERTIES SOVERSION 0.0)
install(TARGETS ${objects} radio DESTINATION lib)
target_link_libraries(radio target_link_libraries(radio
${CASACORE_LIBRARIES} ${CASACORE_LIBRARIES}
@ -55,3 +59,4 @@ ${LAPACK_LIBRARIES}
${WCSLIB_LIBRARIES} ${WCSLIB_LIBRARIES}
${GLIB_PKG_LIBRARIES} ${GLIB_PKG_LIBRARIES}
) )