Added install target for static versions
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@170 fdac6126-5c0c-442c-9429-916003d36597
This commit is contained in:
@@ -343,6 +343,12 @@ function (acg_add_library _target _libtype)
|
||||
|
||||
add_library (${_target} ${_type} ${ARGN} )
|
||||
|
||||
# acg_get_version()
|
||||
#
|
||||
# set_target_properties (${_target} PROPERTIES VERSION ${VERSION-MAJOR}.${VERSION-MINOR}
|
||||
# SOVERSION ${VERSION-MAJOR}.${VERSION-MINOR} )
|
||||
#
|
||||
|
||||
# set common target properties defined in common.cmake
|
||||
acg_set_target_props (${_target})
|
||||
|
||||
@@ -353,8 +359,17 @@ function (acg_add_library _target _libtype)
|
||||
acg_set_target_props (${_target}Static)
|
||||
|
||||
if (NOT APPLE)
|
||||
# todo : create correct so names
|
||||
set_target_properties (${_target}Static PROPERTIES
|
||||
LIBRARY_OUTPUT_DIRECTORY "${CMAKE_LIBRARY_OUTPUT_DIRECTORY}")
|
||||
LIBRARY_OUTPUT_DIRECTORY "${CMAKE_LIBRARY_OUTPUT_DIRECTORY}"
|
||||
)
|
||||
|
||||
# todo : rename the lib to omit the static name extension
|
||||
install (TARGETS ${_target}Static
|
||||
RUNTIME DESTINATION ${ACG_PROJECT_BINDIR}
|
||||
LIBRARY DESTINATION ${ACG_PROJECT_LIBDIR}
|
||||
ARCHIVE DESTINATION ${ACG_PROJECT_LIBDIR} )
|
||||
|
||||
endif ()
|
||||
endif ()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user