- UPDATE : Add Install target to CMake build.

git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@556 67173fc5-114c-0410-ac8e-9d2fd5bffc1f
pull/1/head
kimmi 2010-02-27 12:00:00 +00:00
parent 3e529ac1fc
commit 7050ae5a3d
2 changed files with 72 additions and 1 deletions

View File

@ -10,6 +10,11 @@ INCLUDE_DIRECTORIES(
SET( CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_HOME_DIRECTORY}/lib ) SET( CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_HOME_DIRECTORY}/lib )
SET( CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_HOME_DIRECTORY}/bin ) SET( CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_HOME_DIRECTORY}/bin )
SET( LIB_INSTALL_DIR "${CMAKE_INSTALL_PREFIX}/lib" )
SET( INCLUDE_INSTALL_DIR "${CMAKE_INSTALL_PREFIX}/include" )
SET( LIBRARY_VERSION "1.0.0" )
SET( LIBRARY_SOVERSION "1" )
# Libs # Libs
add_subdirectory( code/ ) add_subdirectory( code/ )

View File

@ -1,6 +1,48 @@
SET( HEADER_PATH ../include/ ) SET( HEADER_PATH ../include/ )
SET( COMPILER_HEADERS
${HEADER_PATH}/Compiler/pushpack1.h
${HEADER_PATH}/Compiler/poppack1.h
)
SET( PUBLIC_HEADERS
aiAnim.h
aiAssert.h
aiCamera.h
aiColor4D.h
aiColor4D.inl
aiConfig.h
aiDefines.h
aiFileIO.h
aiLight.h
aiMaterial.h
aiMaterial.inl
aiMatrix3x3.h
aiMatrix3x3.inl
aiMatrix4x4.h
aiMatrix4x4.inl
aiMesh.h
aiPostProcess.h
aiQuaternion.h
aiScene.h
aiTexture.h
aiTypes.h
aiVector2D.h
aiVector3D.h
aiVector3D.inl
aiVersion.h
assimp.h
assimp.hpp
BoostWorkaround
Compiler
DefaultLogger.h
IOStream.h
IOSystem.h
Logger.h
LogStream.h
NullLogger.h
)
SOURCE_GROUP( Logging FILES SOURCE_GROUP( Logging FILES
${HEADER_PATH}/DefaultLogger.h ${HEADER_PATH}/DefaultLogger.h
${HEADER_PATH}/IOStream.h ${HEADER_PATH}/IOStream.h
@ -11,6 +53,7 @@ SOURCE_GROUP( Logging FILES
DefaultLogger.cpp DefaultLogger.cpp
FileLogStream.h FileLogStream.h
) )
SOURCE_GROUP( Common FILES SOURCE_GROUP( Common FILES
aiAssert.cpp aiAssert.cpp
fast_atof.h fast_atof.h
@ -265,6 +308,12 @@ SOURCE_GROUP( Q3D FILES
Q3DLoader.cpp Q3DLoader.cpp
Q3DLoader.h Q3DLoader.h
) )
#SOURCE_GROUP( Q3BSP FILES
# Q3BSPFileParser.h
# Q3BSPFileParser.cpp
# Q3BSPFileImporter.h
# Q3BSPFileImporter.cpp
#)
SOURCE_GROUP( Raw FILES SOURCE_GROUP( Raw FILES
RawLoader.cpp RawLoader.cpp
@ -501,6 +550,10 @@ ADD_LIBRARY( assimp SHARED
ProcessHelper.h ProcessHelper.h
Q3DLoader.cpp Q3DLoader.cpp
Q3DLoader.h Q3DLoader.h
#Q3BSPFileParser.h
#Q3BSPFileParser.cpp
#Q3BSPFileImporter.h
#Q3BSPFileImporter.cpp
RawLoader.cpp RawLoader.cpp
RawLoader.h RawLoader.h
RemoveComments.cpp RemoveComments.cpp
@ -601,4 +654,17 @@ if (WIN32)
ADD_DEFINITIONS( -D_SCL_SECURE_NO_WARNINGS ) ADD_DEFINITIONS( -D_SCL_SECURE_NO_WARNINGS )
ADD_DEFINITIONS( -D_CRT_SECURE_NO_WARNINGS ) ADD_DEFINITIONS( -D_CRT_SECURE_NO_WARNINGS )
endif( MSVC80 ) endif( MSVC80 )
if ( MSVC90 )
ADD_DEFINITIONS( -D_SCL_SECURE_NO_WARNINGS )
ADD_DEFINITIONS( -D_CRT_SECURE_NO_WARNINGS )
endif( MSVC90 )
endif (WIN32) endif (WIN32)
SET_TARGET_PROPERTIES( assimp PROPERTIES
VERSION ${LIBRARY_VERSION}
SOVERSION ${LIBRARY_SOVERSION}
)
INSTALL( TARGETS assimp DESTINATION ${LIB_INSTALL_DIR} )
INSTALL( FILES ${PUBLIC_HEADERS} DESTINATION ${INCLUDE_INSTALL_DIR}/assimp )
INSTALL( FILES ${COMPILER_HEADERS} DESTINATION ${INCLUDE_INSTALL_DIR}/assimp/Compiler )