1
# Both these macros are taken from KDE3Macros.cmake
2
# Apart from the names, the only modification is that they take a destination argument
4
MACRO(GTKQT_KDE3_ADD_KPART _target_NAME _destination _with_PREFIX)
5
#is the first argument is "WITH_PREFIX" then keep the standard "lib" prefix, otherwise SET the prefix empty
6
IF (${_with_PREFIX} STREQUAL "WITH_PREFIX")
8
ELSE (${_with_PREFIX} STREQUAL "WITH_PREFIX")
9
SET(_first_SRC ${_with_PREFIX})
10
ENDIF (${_with_PREFIX} STREQUAL "WITH_PREFIX")
12
IF (KDE3_ENABLE_FINAL)
13
KDE3_CREATE_FINAL_FILE(${_target_NAME}_final.cpp ${_first_SRC} ${ARGN})
14
ADD_LIBRARY(${_target_NAME} MODULE ${_target_NAME}_final.cpp)
15
ELSE (KDE3_ENABLE_FINAL)
16
ADD_LIBRARY(${_target_NAME} MODULE ${_first_SRC} ${ARGN})
17
ENDIF (KDE3_ENABLE_FINAL)
20
SET_TARGET_PROPERTIES(${_target_NAME} PROPERTIES PREFIX "")
23
GTKQT_KDE3_INSTALL_LIBTOOL_FILE(${_target_NAME} ${_destination})
25
ENDMACRO(GTKQT_KDE3_ADD_KPART)
27
MACRO(GTKQT_KDE3_INSTALL_LIBTOOL_FILE _target _destination)
28
GET_TARGET_PROPERTY(_target_location ${_target} LOCATION)
30
GET_FILENAME_COMPONENT(_laname ${_target_location} NAME_WE)
31
GET_FILENAME_COMPONENT(_soname ${_target_location} NAME)
32
SET(_laname ${CMAKE_CURRENT_BINARY_DIR}/${_laname}.la)
34
FILE(WRITE ${_laname} "# ${_laname} - a libtool library file, generated by cmake \n")
35
FILE(APPEND ${_laname} "# The name that we can dlopen(3).\n")
36
FILE(APPEND ${_laname} "dlname='${_soname}'\n")
37
FILE(APPEND ${_laname} "# Names of this library\n")
38
FILE(APPEND ${_laname} "library_names='${_soname} ${_soname} ${_soname}'\n")
39
FILE(APPEND ${_laname} "# The name of the static archive\n")
40
FILE(APPEND ${_laname} "old_library=''\n")
41
FILE(APPEND ${_laname} "# Libraries that this one depends upon.\n")
42
FILE(APPEND ${_laname} "dependency_libs=''\n")
43
# FILE(APPEND ${_laname} "dependency_libs='${${_target}_LIB_DEPENDS}'\n")
44
FILE(APPEND ${_laname} "# Version information.\ncurrent=0\nage=0\nrevision=0\n")
45
FILE(APPEND ${_laname} "# Is this an already installed library?\ninstalled=yes\n")
46
FILE(APPEND ${_laname} "# Should we warn about portability when linking against -modules?\nshouldnotlink=yes\n")
47
FILE(APPEND ${_laname} "# Files to dlopen/dlpreopen\ndlopen=''\ndlpreopen=''\n")
48
FILE(APPEND ${_laname} "# Directory that this library needs to be installed in:\n")
49
FILE(APPEND ${_laname} "libdir='${CMAKE_INSTALL_PREFIX}/lib/kde3'\n")
53
DESTINATION ${_destination}
56
ENDMACRO(GTKQT_KDE3_INSTALL_LIBTOOL_FILE)
b'\\ No newline at end of file'