Finished to adjust the libraries names in SFML, CSFML and SFML.Net
Removed support for old projects/makefiles (only CMake makefiles can be used now) git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1612 4e206d99-4929-0410-ac5d-dfc041789085
This commit is contained in:
parent
9f0d6882ba
commit
6e682af51a
130 changed files with 373 additions and 20074 deletions
|
@ -58,15 +58,23 @@ macro(csfml_add_library target)
|
|||
add_library(${target} ${THIS_SOURCES})
|
||||
|
||||
# adjust the output file prefix/suffix to match our conventions
|
||||
set_target_properties(${target} PROPERTIES DEBUG_POSTFIX -d)
|
||||
if(WINDOWS)
|
||||
# include the major version number in Windows shared library names (but not import library names)
|
||||
set_target_properties(${target} PROPERTIES DEBUG_POSTFIX -d)
|
||||
set_target_properties(${target} PROPERTIES SUFFIX "-${VERSION_MAJOR}${CMAKE_SHARED_LIBRARY_SUFFIX}")
|
||||
else()
|
||||
set_target_properties(${target} PROPERTIES DEBUG_POSTFIX -d)
|
||||
endif()
|
||||
if (WINDOWS AND COMPILER_GCC)
|
||||
# on Windows/gcc get rid of "lib" prefix for shared libraries,
|
||||
# and transform the ".dll.a" suffix into ".a" for import libraries
|
||||
set_target_properties(${target} PROPERTIES PREFIX "")
|
||||
set_target_properties(${target} PROPERTIES IMPORT_SUFFIX ".a")
|
||||
endif()
|
||||
|
||||
# insert the major version number in the output filename
|
||||
string(REGEX REPLACE "csfml(-.*)" "csfml${VERSION_MAJOR}\\1" OUTPUT_NAME ${target})
|
||||
set_target_properties(${target} PROPERTIES OUTPUT_NAME ${OUTPUT_NAME})
|
||||
# set the version and soversion of the target (for compatible systems -- mostly Linuxes)
|
||||
set_target_properties(${target} PROPERTIES SOVERSION ${VERSION_MAJOR}.${VERSION_MINOR})
|
||||
set_target_properties(${target} PROPERTIES VERSION ${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH})
|
||||
|
||||
# for gcc 4.x on Windows, we add the -static-libgcc linker flag to get rid of an extra gcc DLL
|
||||
if(WINDOWS AND COMPILER_GCC)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue