Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

apply patch provided in Issue 4: CMake or Scons (add cmake files)

  • Loading branch information...
commit 34ec1debfb466e8caff445c617f8c80c6f88713e 1 parent 309c0e8
@opencollada-sebastian opencollada-sebastian authored
View
82 CMakeLists.txt
@@ -0,0 +1,82 @@
+CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
+
+SET(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/external/cmake-modules")
+SET(CMAKE_CONFIGURATION_TYPES "Debug;Release" CACHE STRING "Only do Release and Debug" FORCE )
+MARK_AS_ADVANCED(CMAKE_CONFIGURATION_TYPES)
+
+PROJECT(OPENCOLLADA) #must be after setting cmake_configuration_types
+
+#defines where specific parts of BRICS_MM are stored or created
+SET(LIBRARY_OUTPUT_PATH ${CMAKE_HOME_DIRECTORY}/lib) #static libraries
+SET(EXECUTABLE_OUTPUT_PATH ${CMAKE_HOME_DIRECTORY}/bin) #executables
+SET(EXTERNAL_LIBRARIES ${CMAKE_HOME_DIRECTORY}/Externals) #external libraries
+SET(CMAKE_MODULE_PATH "${EXTERNAL_LIBRARIES}/cmake-modules")
+
+IF (NOT WIN32)
+ set(CMAKE_CXX_FLAGS "-Wall")
+ENDIF (NOT WIN32)
+
+OPTION(USE_LIBXML "Use LibXml2 parser" ON)
+OPTION(USE_EXPAT "Use expat parser" OFF)
+
+#adding xml2
+IF(USE_LIBXML)
+ ADD_DEFINITIONS(-DGENERATEDSAXPARSER_XMLPARSER_LIBXML)
+ ADD_DEFINITIONS(-DXMLPARSER_LIBXML)
+ FIND_PACKAGE(LibXml2)
+ IF (LIBXML2_FOUND)
+ MESSAGE(STATUS "SUCCESSFUL: LibXml2 found")
+ ELSE (LIBXML2_FOUND) #if xml2 not found building its local copy from ./Externals
+ IF (WIN32)
+ MESSAGE(STATUS "WARNING: Native LibXml2 not found, taking LibXml from ./Externals")
+ ADD_SUBDIRECTORY(${EXTERNAL_LIBRARIES}/LibXML)
+ SET(LIBXML2_INCLUDE_DIR
+ ${libxml_include_dirs}
+ )
+ SET(LIBXML2_LIBRARIES ${libxml_include_dirs}
+ xml)
+ ELSE (WIN32)
+ MESSAGE(STATUS "ERROR: LibXml2 not found, please install libxml2-dev library")
+ ENDIF (WIN32)
+ ENDIF (LIBXML2_FOUND)
+ENDIF(USE_LIBXML)
+
+IF(USE_EXPAT)
+ ADD_DEFINITIONS(-DGENERATEDSAXPARSER_XMLPARSER_EXPAT)
+ MESSAGE(STATUS "FATAL: EXPAT support not implemented")
+ #TODO:: use externals
+ENDIF(USE_EXPAT)
+
+#adding PCRE
+FIND_PACKAGE(PCRE)
+IF (PCRE_FOUND)
+ MESSAGE(STATUS "SUCCESSFUL: PCRE found")
+ELSE (PCRE_FOUND) #if pcre not found building its local copy from ./Externals
+ MESSAGE(STATUS "WARNING: Native PCRE not found, taking PCRE from ./Externals")
+ ADD_DEFINITIONS(-DPCRE_STATIC)
+ ADD_DEFINITIONS(-DCOLLADABU_USE_PCRE_PRECOMPILED)
+ ADD_SUBDIRECTORY(${EXTERNAL_LIBRARIES}/pcre)
+ SET(PCRE_INCLUDE_DIR
+ ${libpcre_include_dirs}
+ )
+ SET(PCRE_LIBRARIES
+ pcre
+ )
+ENDIF (PCRE_FOUND)
+
+#building required libs
+ADD_SUBDIRECTORY(common/libftoa)
+ADD_SUBDIRECTORY(common/libBuffer)
+ADD_SUBDIRECTORY(${EXTERNAL_LIBRARIES}/UTF)
+ADD_SUBDIRECTORY(${EXTERNAL_LIBRARIES}/MathMLSolver)
+
+#building OpenCOLLADA libs
+ADD_SUBDIRECTORY(COLLADABaseUtils)
+ADD_SUBDIRECTORY(COLLADAFramework)
+ADD_SUBDIRECTORY(GeneratedSaxParser)
+ADD_SUBDIRECTORY(COLLADASaxFrameworkLoader)
+ADD_SUBDIRECTORY(COLLADAStreamWriter)
+
+#building COLLADAValidator app
+ADD_SUBDIRECTORY(COLLADAValidator)
+
View
32 COLLADABaseUtils/CMakeLists.txt
@@ -0,0 +1,32 @@
+PROJECT(OpenCOLLADABaseUtils)
+
+SET(libBaseUtils_include_dirs
+ ${CMAKE_CURRENT_SOURCE_DIR}/include/
+ ${CMAKE_CURRENT_SOURCE_DIR}/include/Math/
+ ${PCRE_INCLUDE_DIR}
+)
+
+SET(libBaseUtils_include_dirs ${libBaseUtils_include_dirs} PARENT_SCOPE) #adding include dirs to a parent scope
+
+SET(libBaseUtils_src_dirs
+ ${CMAKE_CURRENT_SOURCE_DIR}/src/
+)
+
+file(GLOB_RECURSE libBaseUtils_src_files
+ ${libBaseUtils_src_dirs}/*.cpp
+ ${libBaseUtils_src_dirs}/*.h
+)
+
+SET(libBaseUtils_libs
+ UTF
+ ${PCRE_LIBRARIES}
+)
+
+INCLUDE_DIRECTORIES(${libBaseUtils_include_dirs} ${libUTF_include_dirs}
+)
+LINK_DIRECTORIES(${LIBRARY_OUTPUT_PATH})
+
+ADD_LIBRARY(OpenCOLLADABaseUtils ${libBaseUtils_src_files})
+TARGET_LINK_LIBRARIES(
+ OpenCOLLADABaseUtils ${libBaseUtils_libs}
+)
View
30 COLLADAFramework/CMakeLists.txt
@@ -0,0 +1,30 @@
+PROJECT(OpenCOLLADAFramework)
+
+
+SET(libFramework_include_dirs
+ ${CMAKE_CURRENT_SOURCE_DIR}/include/
+)
+
+SET(libFramework_include_dirs ${libFramework_include_dirs} PARENT_SCOPE) #adding include dirs to a parent scope
+
+SET(libFramework_src_dirs
+ ${CMAKE_CURRENT_SOURCE_DIR}/src/
+)
+
+file(GLOB_RECURSE libFramework_src_files
+ ${libFramework_src_dirs}/*.cpp
+ ${libFramework_src_dirs}/*.h
+)
+
+SET(libFramework_libs
+ OpenCOLLADABaseUtils
+ MathMLSolver
+)
+
+INCLUDE_DIRECTORIES(${libFramework_include_dirs} ${libBaseUtils_include_dirs} ${libMathMLSolver_include_dirs})
+LINK_DIRECTORIES(${LIBRARY_OUTPUT_PATH})
+
+ADD_LIBRARY(OpenCOLLADAFramework ${libFramework_src_files})
+TARGET_LINK_LIBRARIES(
+ OpenCOLLADAFramework ${libFramework_libs}
+)
View
48 COLLADASaxFrameworkLoader/CMakeLists.txt
@@ -0,0 +1,48 @@
+PROJECT(OpenCOLLADASaxFrameworkLoader)
+
+SET(libSaxFrameworkLoader_include_dirs
+ ${CMAKE_CURRENT_SOURCE_DIR}/include/
+ ${CMAKE_CURRENT_SOURCE_DIR}/include/generated14
+ ${CMAKE_CURRENT_SOURCE_DIR}/include/generated15
+)
+
+SET(libSaxFrameworkLoader_include_dirs ${libSaxFrameworkLoader_include_dirs} PARENT_SCOPE) #adding include dirs to a parent scope
+
+SET(libSaxFrameworkLoader_src_dirs
+ ${CMAKE_CURRENT_SOURCE_DIR}/src/
+)
+
+file(GLOB_RECURSE libSaxFrameworkLoader_src_files
+ ${libSaxFrameworkLoader_src_dirs}/*.cpp
+ ${libSaxFrameworkLoader_src_dirs}/*.h
+)
+
+SET(libSaxFrameworkLoader_libs
+ OpenCOLLADABaseUtils
+ OpenCOLLADAFramework
+ GeneratedSaxParser
+)
+
+IF (USE_LIBXML)
+ LIST(APPEND libGeneratedSaxParser_include_dirs ${LIBXML2_INCLUDE_DIR})
+ LIST(APPEND libGeneratedSaxParser_libs ${LIBXML2_LIBRARIES})
+ENDIF (USE_LIBXML)
+
+IF (USE_EXPAT)
+ LIST(APPEND libGeneratedSaxParser_include_dirs ${LIBEXPAT_INCLUDE_DIR})
+ LIST(APPEND libGeneratedSaxParser_libs ${LIBEXPAT_LIBRARIES})
+ENDIF (USE_EXPAT)
+
+INCLUDE_DIRECTORIES(
+ ${libSaxFrameworkLoader_include_dirs}
+ ${libMathMLSolver_include_dirs}
+ ${libBaseUtils_include_dirs}
+ ${libFramework_include_dirs}
+ ${libGeneratedSaxParser_include_dirs}
+)
+LINK_DIRECTORIES(${LIBRARY_OUTPUT_PATH})
+
+ADD_LIBRARY(OpenCOLLADASaxFrameworkLoader ${libSaxFrameworkLoader_src_files})
+TARGET_LINK_LIBRARIES(
+ OpenCOLLADASaxFrameworkLoader ${libSaxFrameworkLoader_libs}
+)
View
30 COLLADAStreamWriter/CMakeLists.txt
@@ -0,0 +1,30 @@
+PROJECT(OpenCOLLADAStreamWriter)
+
+SET(libStreamWriter_include_dirs
+ ${CMAKE_CURRENT_SOURCE_DIR}/include/
+)
+
+SET(libStreamWriter_include_dirs ${libStreamWriter_include_dirs} PARENT_SCOPE) #adding include dirs to a parent scope
+
+SET(libStreamWriter_src_dirs
+ ${CMAKE_CURRENT_SOURCE_DIR}/src/
+)
+
+file(GLOB_RECURSE libStreamWriterLoader_src_files
+ ${libStreamWriter_src_dirs}/*.cpp
+ ${libStreamWriter_src_dirs}/*.h
+)
+
+SET(libStreamWriter_libs
+ ftoa
+ buffer
+ OpenCOLLADABaseUtils
+)
+
+INCLUDE_DIRECTORIES(${libStreamWriter_include_dirs} ${libBaseUtils_include_dirs} ${libftoa_include_dirs} ${libBuffer_include_dirs})
+LINK_DIRECTORIES(${LIBRARY_OUTPUT_PATH})
+
+ADD_LIBRARY(OpenCOLLADAStreamWriter ${libStreamWriterLoader_src_files})
+TARGET_LINK_LIBRARIES(
+ OpenCOLLADAStreamWriter ${libStreamWriter_libs}
+)
View
34 COLLADAValidator/CMakeLists.txt
@@ -0,0 +1,34 @@
+PROJECT(OpenCOLLADAValidator)
+
+SET(libValidator_include_dirs
+ ${CMAKE_CURRENT_SOURCE_DIR}/include/
+)
+
+SET(libValidator_include_dirs ${libValidator_include_dirs} PARENT_SCOPE) #adding include dirs to a parent scope
+
+SET(libValidator_src_dirs
+ ${CMAKE_CURRENT_SOURCE_DIR}/src/
+)
+
+file(GLOB_RECURSE libValidator_src_files
+ ${libValidator_src_dirs}/*.cpp
+ ${libValidator_src_dirs}/*.h
+)
+
+SET(libValidator_libs
+ OpenCOLLADASaxFrameworkLoader
+)
+
+INCLUDE_DIRECTORIES(
+ ${libValidator_include_dirs}
+ ${libBaseUtils_include_dirs}
+ ${libFramework_include_dirs}
+ ${libSaxFrameworkLoader_include_dirs}
+ ${libGeneratedSaxParser_include_dirs}
+)
+LINK_DIRECTORIES(${LIBRARY_OUTPUT_PATH})
+
+ADD_EXECUTABLE(OpenCOLLADAValidator ${libValidator_src_files})
+TARGET_LINK_LIBRARIES(
+ OpenCOLLADAValidator ${libValidator_libs}
+)
View
62 Externals/LibXML/CMakeLists.txt
@@ -0,0 +1,62 @@
+PROJECT(xml)
+
+SET(libxml_include_dirs
+ ${CMAKE_CURRENT_SOURCE_DIR}/include/
+)
+
+SET(libxml_include_dirs ${libxml_include_dirs} PARENT_SCOPE) #adding include dirs to a parent scope
+
+SET(libxml_src_dirs
+ ${CMAKE_CURRENT_SOURCE_DIR}
+)
+
+SET(libxml_src_files
+ ${libxml_src_dirs}/c14n.c
+ ${libxml_src_dirs}/catalog.c
+ ${libxml_src_dirs}/chvalid.c
+ ${libxml_src_dirs}/debugXML.c
+ ${libxml_src_dirs}/dict.c
+ ${libxml_src_dirs}/DOCBparser.c
+ ${libxml_src_dirs}/encoding.c
+ ${libxml_src_dirs}/entities.c
+ ${libxml_src_dirs}/error.c
+ ${libxml_src_dirs}/legacy.c
+ ${libxml_src_dirs}/list.c
+ ${libxml_src_dirs}/nanoftp.c
+ ${libxml_src_dirs}/nanohttp.c
+ ${libxml_src_dirs}/parser.c
+ ${libxml_src_dirs}/parserInternals.c
+ ${libxml_src_dirs}/pattern.c
+ ${libxml_src_dirs}/globals.c
+ ${libxml_src_dirs}/hash.c
+ ${libxml_src_dirs}/HTMLparser.c
+ ${libxml_src_dirs}/HTMLtree.c
+ ${libxml_src_dirs}/SAX2.c
+ ${libxml_src_dirs}/SAX.c
+ ${libxml_src_dirs}/threads.c
+ ${libxml_src_dirs}/relaxng.c
+ ${libxml_src_dirs}/uri.c
+ ${libxml_src_dirs}/valid.c
+ ${libxml_src_dirs}/xinclude.c
+ ${libxml_src_dirs}/xlink.c
+ ${libxml_src_dirs}/xmlIO.c
+ ${libxml_src_dirs}/xmlmemory.c
+ ${libxml_src_dirs}/xmlmodule.c
+ ${libxml_src_dirs}/xmlreader.c
+ ${libxml_src_dirs}/xmlregexp.c
+ ${libxml_src_dirs}/xmlsave.c
+ ${libxml_src_dirs}/xmlstring.c
+ ${libxml_src_dirs}/xmlunicode.c
+ ${libxml_src_dirs}/xmlwriter.c
+ ${libxml_src_dirs}/tree.c
+)
+
+SET(libxml_libs)
+
+INCLUDE_DIRECTORIES(${libxml_include_dirs})
+LINK_DIRECTORIES(${LIBRARY_OUTPUT_PATH})
+
+ADD_LIBRARY(xml ${libxml_src_files})
+TARGET_LINK_LIBRARIES(
+ xml ${libxml_libs}
+)
View
27 Externals/MathMLSolver/CMakeLists.txt
@@ -0,0 +1,27 @@
+PROJECT(MathMLSolver)
+
+SET(libMathMLSolver_include_dirs
+ ${CMAKE_CURRENT_SOURCE_DIR}/include/
+ ${CMAKE_CURRENT_SOURCE_DIR}/include/AST/
+)
+
+SET(libMathMLSolver_include_dirs ${libMathMLSolver_include_dirs} PARENT_SCOPE) #adding include dirs to a parent scope
+
+SET(libMathMLSolver_src_dirs
+ ${CMAKE_CURRENT_SOURCE_DIR}/src/
+)
+
+file(GLOB_RECURSE libMathMLSolver_src_files
+ ${libMathMLSolver_src_dirs}/*.cpp
+ ${libMathMLSolver_src_dirs}/*.h
+)
+
+SET(libMathMLSolver_libs)
+
+INCLUDE_DIRECTORIES(${libMathMLSolver_include_dirs})
+LINK_DIRECTORIES(${LIBRARY_OUTPUT_PATH})
+
+ADD_LIBRARY(MathMLSolver ${libMathMLSolver_src_files})
+TARGET_LINK_LIBRARIES(
+ MathMLSolver ${libMathMLSolver_libs}
+)
View
26 Externals/UTF/CMakeLists.txt
@@ -0,0 +1,26 @@
+PROJECT(UTF)
+
+SET(libUTF_include_dirs
+ ${CMAKE_CURRENT_SOURCE_DIR}/include/
+)
+
+SET(libUTF_include_dirs ${libUTF_include_dirs} PARENT_SCOPE) #adding include dirs to a parent scope
+
+SET(libUTF_src_dirs
+ ${CMAKE_CURRENT_SOURCE_DIR}/src/
+)
+
+file(GLOB_RECURSE libUTF_src_files
+ ${libUTF_src_dirs}/*.c
+)
+
+SET(libUTF_libs)
+
+INCLUDE_DIRECTORIES(
+ ${libUTF_include_dirs}
+)
+LINK_DIRECTORIES(${LIBRARY_OUTPUT_PATH})
+
+ADD_LIBRARY(UTF ${libUTF_src_files})
+TARGET_LINK_LIBRARIES(UTF ${libUTF_libs}
+)
View
44 Externals/cmake-modules/FindPCRE.cmake
@@ -0,0 +1,44 @@
+# - Try to find the PCRE regular expression library
+# Once done this will define
+#
+# PCRE_FOUND - system has the PCRE library
+# PCRE_INCLUDE_DIR - the PCRE include directory
+# PCRE_LIBRARIES - The libraries needed to use PCRE
+
+# Copyright (c) 2006, Alexander Neundorf, <neundorf@kde.org>
+#
+# Redistribution and use is allowed according to the terms of the BSD license.
+# For details see the accompanying COPYING-CMAKE-SCRIPTS file.
+
+if (PCRE_INCLUDE_DIR AND PCRE_PCREPOSIX_LIBRARY AND PCRE_PCRE_LIBRARY)
+ # Already in cache, be silent
+ set(PCRE_FIND_QUIETLY TRUE)
+endif (PCRE_INCLUDE_DIR AND PCRE_PCREPOSIX_LIBRARY AND PCRE_PCRE_LIBRARY)
+
+if (NOT WIN32)
+ # use pkg-config to get the directories and then use these values
+ # in the FIND_PATH() and FIND_LIBRARY() calls
+ find_package(PkgConfig)
+ pkg_check_modules(PC_PCRE QUIET libpcre)
+ set(PCRE_DEFINITIONS ${PC_PCRE_CFLAGS_OTHER})
+endif (NOT WIN32)
+
+find_path(PCRE_INCLUDE_DIR pcre.h
+ HINTS ${PC_PCRE_INCLUDEDIR} ${PC_PCRE_INCLUDE_DIRS}
+ PATH_SUFFIXES pcre)
+
+find_library(PCRE_PCRE_LIBRARY NAMES pcre HINTS ${PC_PCRE_LIBDIR} ${PC_PCRE_LIBRARY_DIRS})
+
+find_library(PCRE_PCREPOSIX_LIBRARY NAMES pcreposix HINTS ${PC_PCRE_LIBDIR} ${PC_PCRE_LIBRARY_DIRS})
+
+include(FindPackageHandleStandardArgs)
+
+IF(NOT WIN32)
+ find_package_handle_standard_args(PCRE DEFAULT_MSG PCRE_INCLUDE_DIR PCRE_PCRE_LIBRARY PCRE_PCREPOSIX_LIBRARY )
+ mark_as_advanced(PCRE_INCLUDE_DIR PCRE_LIBRARIES PCRE_PCREPOSIX_LIBRARY PCRE_PCRE_LIBRARY)
+ set(PCRE_LIBRARIES ${PCRE_PCRE_LIBRARY} ${PCRE_PCREPOSIX_LIBRARY})
+ELSE()
+ find_package_handle_standard_args(PCRE DEFAULT_MSG PCRE_INCLUDE_DIR PCRE_PCRE_LIBRARY )
+ set(PCRE_LIBRARIES ${PCRE_PCRE_LIBRARY} )
+ mark_as_advanced(PCRE_INCLUDE_DIR PCRE_LIBRARIES PCRE_PCRE_LIBRARY)
+ENDIF()
View
25 Externals/pcre/CMakeLists.txt
@@ -0,0 +1,25 @@
+PROJECT(pcre)
+
+SET(libpcre_include_dirs
+ ${CMAKE_CURRENT_SOURCE_DIR}/include/
+)
+
+SET(libpcre_include_dirs ${libpcre_include_dirs} PARENT_SCOPE) #adding include dirs to a parent scope
+
+SET(libpcre_src_dirs
+ ${CMAKE_CURRENT_SOURCE_DIR}/src/
+)
+
+file(GLOB libpcre_src_files
+ ${libpcre_src_dirs}/*.c
+)
+
+SET(libpcre_libs)
+
+INCLUDE_DIRECTORIES(${libpcre_include_dirs})
+LINK_DIRECTORIES(${LIBRARY_OUTPUT_PATH})
+
+ADD_LIBRARY(pcre ${libpcre_src_files})
+TARGET_LINK_LIBRARIES(
+ pcre ${libpcre_libs}
+)
View
43 GeneratedSaxParser/CMakeLists.txt
@@ -0,0 +1,43 @@
+PROJECT(GeneratedSaxParser)
+
+
+SET(libGeneratedSaxParser_include_dirs
+ ${CMAKE_CURRENT_SOURCE_DIR}/include/
+)
+
+SET(libGeneratedSaxParser_include_dirs ${libGeneratedSaxParser_include_dirs} PARENT_SCOPE) #adding include dirs to a parent scope
+
+SET(libGeneratedSaxParser_src_dirs
+ ${CMAKE_CURRENT_SOURCE_DIR}/src/
+)
+
+file(GLOB_RECURSE libGeneratedSaxParser_src_files
+ ${libGeneratedSaxParser_src_dirs}/*.cpp
+ ${libGeneratedSaxParser_src_dirs}/*.h
+)
+
+SET(libGeneratedSaxParser_libs
+ OpenCOLLADABaseUtils
+)
+
+IF (USE_LIBXML)
+ file(REMOVE libGeneratedSaxParser_src_files
+ ${libGeneratedSaxParser_src_dirs}/GeneratedSaxParserExpatSaxParser.cpp
+ )
+ LIST(APPEND libGeneratedSaxParser_include_dirs ${LIBXML2_INCLUDE_DIR})
+ LIST(APPEND libGeneratedSaxParser_libs ${LIBXML2_LIBRARIES})
+ENDIF (USE_LIBXML)
+
+IF (USE_EXPAT)
+ file(REMOVE libGeneratedSaxParser_src_files
+ ${libGeneratedSaxParser_src_dirs}/GeneratedSaxParserLibxmlSaxParser.cpp
+ )
+ LIST(APPEND libGeneratedSaxParser_include_dirs ${LIBEXPAT_INCLUDE_DIR})
+ LIST(APPEND libGeneratedSaxParser_libs ${LIBEXPAT_LIBRARIES})
+ENDIF (USE_EXPAT)
+
+INCLUDE_DIRECTORIES(${libGeneratedSaxParser_include_dirs} ${libBaseUtils_include_dirs})
+LINK_DIRECTORIES(${LIBRARY_OUTPUT_PATH})
+
+ADD_LIBRARY(GeneratedSaxParser ${libGeneratedSaxParser_src_files})
+TARGET_LINK_LIBRARIES(GeneratedSaxParser ${libGeneratedSaxParser_libs})
View
28 common/libBuffer/CMakeLists.txt
@@ -0,0 +1,28 @@
+PROJECT(Buffer)
+
+SET(libBuffer_include_dirs
+ ${CMAKE_CURRENT_SOURCE_DIR}/include/
+)
+
+SET(libBuffer_include_dirs ${libBuffer_include_dirs} PARENT_SCOPE) #adding include dirs to a parent scope
+
+SET(libBuffer_src_dirs
+ ${CMAKE_CURRENT_SOURCE_DIR}/src/
+)
+
+set(libBuffer_src_files
+ ${libBuffer_src_dirs}/CommonBuffer.cpp
+ ${libBuffer_src_dirs}/CommonCharacterBuffer.cpp
+ ${libBuffer_src_dirs}/CommonFWriteBufferFlusher.cpp
+ ${libBuffer_src_dirs}/CommonStreamBufferFlusher.cpp
+)
+
+SET(libBuffer_libs)
+
+INCLUDE_DIRECTORIES(${libBuffer_include_dirs} ${libftoa_include_dirs})
+LINK_DIRECTORIES(${LIBRARY_OUTPUT_PATH})
+
+ADD_LIBRARY(buffer ${libBuffer_src_files})
+TARGET_LINK_LIBRARIES(
+ buffer ${libBuffer_libs}
+)
View
27 common/libftoa/CMakeLists.txt
@@ -0,0 +1,27 @@
+PROJECT(ftoa)
+
+SET(libftoa_include_dirs
+ ${CMAKE_CURRENT_SOURCE_DIR}/include/
+)
+
+SET(libftoa_include_dirs ${libftoa_include_dirs} PARENT_SCOPE) #adding include dirs to a parent scope
+
+SET(libftoa_src_dirs
+ ${CMAKE_CURRENT_SOURCE_DIR}/src/
+)
+
+SET(libftoa_src_files
+ ${libftoa_src_dirs}/Commondtoa.cpp
+ ${libftoa_src_dirs}/Commonftoa.cpp
+ ${libftoa_src_dirs}/Commonitoa.cpp
+)
+
+SET(libftoa_libs)
+
+INCLUDE_DIRECTORIES(${libftoa_include_dirs})
+LINK_DIRECTORIES(${LIBRARY_OUTPUT_PATH})
+
+ADD_LIBRARY(ftoa ${libftoa_src_files})
+TARGET_LINK_LIBRARIES(
+ ftoa ${libftoa_libs}
+)
Please sign in to comment.
Something went wrong with that request. Please try again.