Skip to content

Commit

Permalink
Install Cable parsing and C++ interface representation SDK
Browse files Browse the repository at this point in the history
Author: Mathieu Malaterre <[email protected]>
  • Loading branch information
bradking committed Oct 7, 2011
1 parent f300f6a commit 7441bfd
Show file tree
Hide file tree
Showing 4 changed files with 69 additions and 1 deletion.
4 changes: 3 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,9 @@ LINK_DIRECTORIES( "${EXECUTABLE_OUTPUT_PATH}" )
SUBDIRS(SWIG Cable)

# Tell CABLE to not install CxxTypes headers.
SET(CABLE_NO_INSTALL_FACILITIES 1)
IF(NOT DEFINED CABLE_NO_INSTALL_FACILITIES)
SET(CABLE_NO_INSTALL_FACILITIES 1)
ENDIF(NOT DEFINED CABLE_NO_INSTALL_FACILITIES)
# make sure CableSwig_INSTALL_ROOT has a / on the end
IF(NOT "${CableSwig_INSTALL_ROOT}" MATCHES "/$")
SET(CableSwig_INSTALL_ROOT "${CableSwig_INSTALL_ROOT}/")
Expand Down
4 changes: 4 additions & 0 deletions Cable/CxxTypes/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,9 @@ ADD_LIBRARY(CxxTypes STATIC ${CxxTypes_SRCS})
ADD_DEFINITIONS(-D_cxx_STATIC)

IF(NOT CABLE_NO_INSTALL_FACILITIES)
INSTALL(TARGETS CxxTypes
ARCHIVE DESTINATION ${CableSwig_INSTALL_ROOT}lib
COMPONENT Development)

INSTALL_FILES(/include/Cable/CxxTypes "^cxx.*\\.h$")
ENDIF(NOT CABLE_NO_INSTALL_FACILITIES)
14 changes: 14 additions & 0 deletions Cable/Generators/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,17 @@ ADD_LIBRARY(CableGenerators STATIC
)

TARGET_LINK_LIBRARIES(CableGenerators CableParsers CxxTypes CableExpat)

IF(NOT CABLE_NO_INSTALL_FACILITIES)
INSTALL(TARGETS CableGenerators
ARCHIVE DESTINATION ${CableSwig_INSTALL_ROOT}lib
COMPONENT Development)

INSTALL(FILES
cableCvTypeWriter.h
cableGenerator.h
cableTclGenerator.h
cableSystemTools.h
DESTINATION ${CableSwig_INSTALL_ROOT}include/Cable
COMPONENT Development)
ENDIF(NOT CABLE_NO_INSTALL_FACILITIES)
48 changes: 48 additions & 0 deletions Cable/Parsers/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,51 @@ ADD_LIBRARY(CableParsers STATIC
)

TARGET_LINK_LIBRARIES(CableParsers CxxTypes CableExpat)

IF(NOT CABLE_NO_INSTALL_FACILITIES)
INSTALL(TARGETS CableParsers
ARCHIVE DESTINATION ${CableSwig_INSTALL_ROOT}lib
COMPONENT Development)

INSTALL(FILES
cableSmartPointer.h
cableUtils.h

cableArrayType.h
cableClass.h
cableClassType.h
cableConstructor.h
cableContext.h
cableConverter.h
cableDestructor.h
cableEnumeration.h
cableEnumerationType.h
cableField.h
cableFunction.h
cableFunctionType.h
cableFundamentalType.h
cableIndent.h
cableMethod.h
cableMethodType.h
cableNamed.h
cableNamespace.h
cableNamespaceAlias.h
cableObject.h
cableOffsetType.h
cableOperatorFunction.h
cableOperatorMethod.h
cablePointerType.h
cableReferenceType.h
cableSourceObject.h
cableSourceRepresentation.h
cableStruct.h
cableType.h
cableTypedef.h
cableUnion.h
cableVariable.h
cableXMLParser.h
cableXMLSourceElement.h
cableXMLSourceParser.h
DESTINATION ${CableSwig_INSTALL_ROOT}include/Cable
COMPONENT Development)
ENDIF(NOT CABLE_NO_INSTALL_FACILITIES)

0 comments on commit 7441bfd

Please sign in to comment.