Permalink
Browse files

added script to double check cmake files (copied from blender where I…

… maintain it),

this helps ensure all source files are either explicitly ignored or accounted for by cmake.
very nice for generating project files.
  • Loading branch information...
1 parent 46fb782 commit 27fe9528a5b2bc2cc7b0c957a5e107b2b7ccfa0d @ideasman42 ideasman42 committed Oct 13, 2011
View
@@ -56,11 +56,11 @@ macro(opencollada_add_lib
set_target_properties(${name}_static PROPERTIES OUTPUT_NAME ${name})
target_link_libraries(${name}_static ${target_libs})
set(CMAKE_REQUIRED_LIBRARIES "${name}_static;${CMAKE_REQUIRED_LIBRARIES}" PARENT_SCOPE)
-
+
install(
TARGETS ${name}_static
ARCHIVE DESTINATION ${OPENCOLLADA_INST_LIBRARY}
- )
+ )
endif ()
if (USE_SHARED)
@@ -86,8 +86,8 @@ endmacro()
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(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")
@@ -131,7 +131,7 @@ if (USE_LIBXML)
message("WARNING: Native LibXml2 not found, taking LibXml from ./Externals")
add_subdirectory(${EXTERNAL_LIBRARIES}/LibXML)
set(LIBXML2_INCLUDE_DIR
- ${libxml_include_dirs}
+ ${libxml_include_dirs}
)
set(LIBXML2_LIBRARIES xml)
else ()
@@ -164,7 +164,7 @@ endif ()
# building required libs
add_subdirectory(common/libftoa)
-add_subdirectory(common/libBuffer)
+add_subdirectory(common/libBuffer)
add_subdirectory(${EXTERNAL_LIBRARIES}/UTF)
add_subdirectory(${EXTERNAL_LIBRARIES}/MathMLSolver)
@@ -84,6 +84,60 @@ set(INST_SRC
include/COLLADASaxFWLXmlTypes.h
)
+set(INST_GEN14_SRC
+ include/generated14/COLLADASaxFWLAssetLoader14.h
+ include/generated14/COLLADASaxFWLColladaParserAutoGen14.h
+ include/generated14/COLLADASaxFWLColladaParserAutoGen14Attributes.h
+ include/generated14/COLLADASaxFWLColladaParserAutoGen14Enums.h
+ include/generated14/COLLADASaxFWLColladaParserAutoGen14FunctionMapFactory.h
+ include/generated14/COLLADASaxFWLColladaParserAutoGen14Private.h
+ include/generated14/COLLADASaxFWLColladaParserAutoGen14ValidationData.h
+ include/generated14/COLLADASaxFWLGeometryLoader14.h
+ include/generated14/COLLADASaxFWLLibraryAnimationsLoader14.h
+ include/generated14/COLLADASaxFWLLibraryCamerasLoader14.h
+ include/generated14/COLLADASaxFWLLibraryControllersLoader14.h
+ include/generated14/COLLADASaxFWLLibraryEffectsLoader14.h
+ include/generated14/COLLADASaxFWLLibraryImagesLoader14.h
+ include/generated14/COLLADASaxFWLLibraryLightsLoader14.h
+ include/generated14/COLLADASaxFWLLibraryMaterialsLoader14.h
+ include/generated14/COLLADASaxFWLLibraryNodesLoader14.h
+ include/generated14/COLLADASaxFWLMeshLoader14.h
+ include/generated14/COLLADASaxFWLNodeLoader14.h
+ include/generated14/COLLADASaxFWLSceneLoader14.h
+ include/generated14/COLLADASaxFWLSourceArrayLoader14.h
+ include/generated14/COLLADASaxFWLVisualSceneLoader14.h
+)
+
+set(INST_GEN15_SRC
+ include/generated15/COLLADASaxFWLAssetLoader15.h
+ include/generated15/COLLADASaxFWLColladaParserAutoGen15.h
+ include/generated15/COLLADASaxFWLColladaParserAutoGen15Attributes.h
+ include/generated15/COLLADASaxFWLColladaParserAutoGen15Enums.h
+ include/generated15/COLLADASaxFWLColladaParserAutoGen15FunctionMapFactory.h
+ include/generated15/COLLADASaxFWLColladaParserAutoGen15Private.h
+ include/generated15/COLLADASaxFWLColladaParserAutoGen15ValidationData.h
+ include/generated15/COLLADASaxFWLFormulasLoader15.h
+ include/generated15/COLLADASaxFWLGeometryLoader15.h
+ include/generated15/COLLADASaxFWLLibraryAnimationsLoader15.h
+ include/generated15/COLLADASaxFWLLibraryArticulatedSystemsLoader15.h
+ include/generated15/COLLADASaxFWLLibraryCamerasLoader15.h
+ include/generated15/COLLADASaxFWLLibraryControllersLoader15.h
+ include/generated15/COLLADASaxFWLLibraryEffectsLoader15.h
+ include/generated15/COLLADASaxFWLLibraryFormulasLoader15.h
+ include/generated15/COLLADASaxFWLLibraryImagesLoader15.h
+ include/generated15/COLLADASaxFWLLibraryJointsLoader15.h
+ include/generated15/COLLADASaxFWLLibraryKinematicsModelsLoader15.h
+ include/generated15/COLLADASaxFWLLibraryKinematicsScenesLoader15.h
+ include/generated15/COLLADASaxFWLLibraryLightsLoader15.h
+ include/generated15/COLLADASaxFWLLibraryMaterialsLoader15.h
+ include/generated15/COLLADASaxFWLLibraryNodesLoader15.h
+ include/generated15/COLLADASaxFWLMeshLoader15.h
+ include/generated15/COLLADASaxFWLNodeLoader15.h
+ include/generated15/COLLADASaxFWLSceneLoader15.h
+ include/generated15/COLLADASaxFWLSourceArrayLoader15.h
+ include/generated15/COLLADASaxFWLVisualSceneLoader15.h
+)
+
set(SRC
src/COLLADASaxFWLLibraryArticulatedSystemsLoader.cpp
src/COLLADASaxFWLCOLLADACsymbol.cpp
@@ -194,6 +248,8 @@ set(SRC
src/generated15/COLLADASaxFWLLibraryControllersLoader15.cpp
${INST_SRC}
+ ${INST_GEN14_SRC}
+ ${INST_GEN15_SRC}
)
set(TARGET_LIBS
@@ -229,19 +285,11 @@ install(
FILES ${INST_SRC}
DESTINATION ${OPENCOLLADA_INST_INCLUDE}/COLLADASaxFrameworkLoader
)
-
-# HRMF, these should be in INST_SRC really! - campbell
install(
- DIRECTORY
- include/generated14
- DESTINATION
- ${OPENCOLLADA_INST_INCLUDE}/COLLADASaxFrameworkLoader
- PATTERN ".svn" EXCLUDE
+ FILES ${INST_GEN14_SRC}
+ DESTINATION ${OPENCOLLADA_INST_INCLUDE}/COLLADASaxFrameworkLoader/generated14
)
install(
- DIRECTORY
- include/generated15
- DESTINATION
- ${OPENCOLLADA_INST_INCLUDE}/COLLADASaxFrameworkLoader
- PATTERN ".svn" EXCLUDE
+ FILES ${INST_GEN15_SRC}
+ DESTINATION ${OPENCOLLADA_INST_INCLUDE}/COLLADASaxFrameworkLoader/generated15
)
@@ -10,6 +10,9 @@ set(libValidator_include_dirs ${libValidator_include_dirs} PARENT_SCOPE) # addi
set(SRC
src/main.cpp
src/ValidationErrorHandler.cpp
+
+ include/ValidationErrorHandler.h
+ include/Writer.h
)
set(libValidator_libs
@@ -25,6 +25,33 @@ set(SRC
src/MathMLSerializationVisitor.cpp
src/MathMLSerializationUtil.cpp
src/MathMLString.cpp
+
+ include/AST/MathMLASTArithmeticExpression.h
+ include/AST/MathMLASTBinaryComparisionExpression.h
+ include/AST/MathMLASTConstantExpression.h
+ include/AST/MathMLASTFragmentExpression.h
+ include/AST/MathMLASTFunctionExpression.h
+ include/AST/MathMLASTLogicExpression.h
+ include/AST/MathMLASTNode.h
+ include/AST/MathMLASTStringVisitor.h
+ include/AST/MathMLASTUnaryArithmeticExpression.h
+ include/AST/MathMLASTVariableExpression.h
+ include/AST/MathMLASTVisitor.h
+ include/MathMLError.h
+ include/MathMLEvaluatorVisitor.h
+ include/MathMLParser.h
+ include/MathMLParserConstants.h
+ include/MathMLPlatform.h
+ include/MathMLSerializationUtil.h
+ include/MathMLSerializationVisitor.h
+ include/MathMLSingleton.h
+ include/MathMLSolverFunctionExtensions.h
+ include/MathMLSolverPrerequisites.h
+ include/MathMLSolverStableHeaders.h
+ include/MathMLStreamParser.h
+ include/MathMLStreamParserHandler.h
+ include/MathMLString.h
+ include/MathMLSymbolTable.h
)
set(TARGET_LIBS)
@@ -9,6 +9,8 @@ set(libUTF_include_dirs ${libUTF_include_dirs} PARENT_SCOPE) # adding include d
set(SRC
src/ConvertUTF.c
+
+ include/ConvertUTF.h
)
set(TARGET_LIBS)
@@ -15,8 +15,26 @@ set(SRC
src/pcre_newline.c
src/pcre_tables.c
src/pcre_try_flipped.c
+
+ include/pcre.h
+ include/pcre_internal.h
+ include/ucp.h
)
+if (WIN32)
+ list(APPEND SRC
+ include/config_win.h
+ )
+else if (APPLE)
+ list(APPEND SRC
+ include/config_mac.h
+ )
+else () # *nix
+ list(APPEND SRC
+ include/config_linux.h
+ )
+endif()
+
set(libpcre_libs)
include_directories(
@@ -51,15 +51,27 @@ set(TARGET_LIBS
)
if (USE_LIBXML)
- list(APPEND SRC src/GeneratedSaxParserLibxmlSaxParser.cpp)
- list(APPEND libGeneratedSaxParser_include_dirs ${LIBXML2_INCLUDE_DIR})
- list(APPEND TARGET_LIBS ${LIBXML2_LIBRARIES})
+ list(APPEND SRC
+ src/GeneratedSaxParserLibxmlSaxParser.cpp
+ )
+ list(APPEND libGeneratedSaxParser_include_dirs
+ ${LIBXML2_INCLUDE_DIR}
+ )
+ list(APPEND TARGET_LIBS
+ ${LIBXML2_LIBRARIES}
+ )
endif ()
if (USE_EXPAT)
- list(APPEND SRC src/GeneratedSaxParserExpatSaxParser.cpp)
- list(APPEND libGeneratedSaxParser_include_dirs ${LIBEXPAT_INCLUDE_DIR})
- list(APPEND TARGET_LIBS ${LIBEXPAT_LIBRARIES})
+ list(APPEND SRC
+ src/GeneratedSaxParserExpatSaxParser.cpp
+ )
+ list(APPEND libGeneratedSaxParser_include_dirs
+ ${LIBEXPAT_INCLUDE_DIR}
+ )
+ list(APPEND TARGET_LIBS
+ ${LIBEXPAT_LIBRARIES}
+ )
endif ()
include_directories(
@@ -17,6 +17,15 @@ set(SRC
src/CommonCharacterBuffer.cpp
src/CommonFWriteBufferFlusher.cpp
src/CommonStreamBufferFlusher.cpp
+ # src/CommonLogFileBufferFlusher.cpp
+
+ include/CommonBuffer.h
+ include/CommonCharacterBuffer.h
+ include/CommonFWriteBufferFlusher.h
+ include/CommonIBufferFlusher.h
+ include/CommonLogFileBufferFlusher.h
+ include/CommonStreamBufferFlusher.h
+ include/performanceTest/performanceTest.h
)
set(TARGET_LIBS ftoa)
@@ -11,6 +11,10 @@ set(SRC
src/Commondtoa.cpp
src/Commonftoa.cpp
src/Commonitoa.cpp
+
+ include/Commondtoa.h
+ include/Commonftoa.h
+ include/Commonitoa.h
)
set(TARGET_LIBS)
Oops, something went wrong.

0 comments on commit 27fe952

Please sign in to comment.