- Added Debug Postfix
- added Viewer Installer git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@1172 67173fc5-114c-0410-ac8e-9d2fd5bffc1fpull/5/head
parent
6852eb6ffe
commit
eebba5348d
|
@ -42,6 +42,8 @@ SET( INCLUDE_INSTALL_DIR "include" CACHE PATH
|
||||||
SET( BIN_INSTALL_DIR "bin" CACHE PATH
|
SET( BIN_INSTALL_DIR "bin" CACHE PATH
|
||||||
"Path the tool executables are installed to." )
|
"Path the tool executables are installed to." )
|
||||||
|
|
||||||
|
SET(DEBUG_POSTFIX "D" CACHE STRING "Debug Postfitx for lib, samples and tools")
|
||||||
|
|
||||||
# Generate a pkg-config .pc for the Assimp library.
|
# Generate a pkg-config .pc for the Assimp library.
|
||||||
CONFIGURE_FILE( "${PROJECT_SOURCE_DIR}/assimp.pc.in" "${PROJECT_BINARY_DIR}/assimp.pc" @ONLY )
|
CONFIGURE_FILE( "${PROJECT_SOURCE_DIR}/assimp.pc.in" "${PROJECT_BINARY_DIR}/assimp.pc" @ONLY )
|
||||||
INSTALL( FILES "${PROJECT_BINARY_DIR}/assimp.pc" DESTINATION ${LIB_INSTALL_DIR}/pkgconfig/ COMPONENT assimp-dev)
|
INSTALL( FILES "${PROJECT_BINARY_DIR}/assimp.pc" DESTINATION ${LIB_INSTALL_DIR}/pkgconfig/ COMPONENT assimp-dev)
|
||||||
|
|
|
@ -699,6 +699,8 @@ ADD_LIBRARY( assimp SHARED
|
||||||
)
|
)
|
||||||
ENDIF ( BUILD_STATIC_LIB )
|
ENDIF ( BUILD_STATIC_LIB )
|
||||||
|
|
||||||
|
SET_PROPERTY(TARGET assimp PROPERTY DEBUG_POSTFIX ${DEBUG_POSTFIX})
|
||||||
|
|
||||||
TARGET_LINK_LIBRARIES(assimp ${ZLIB_LIBRARIES})
|
TARGET_LINK_LIBRARIES(assimp ${ZLIB_LIBRARIES})
|
||||||
SET_TARGET_PROPERTIES( assimp PROPERTIES
|
SET_TARGET_PROPERTIES( assimp PROPERTIES
|
||||||
VERSION ${LIBRARY_VERSION}
|
VERSION ${LIBRARY_VERSION}
|
||||||
|
|
|
@ -14,6 +14,8 @@ ADD_EXECUTABLE( assimp_simpleogl
|
||||||
Sample_SimpleOpenGL.c
|
Sample_SimpleOpenGL.c
|
||||||
)
|
)
|
||||||
|
|
||||||
|
SET_PROPERTY(TARGET assimp_simpleogl PROPERTY DEBUG_POSTFIX ${DEBUG_POSTFIX})
|
||||||
|
|
||||||
TARGET_LINK_LIBRARIES( assimp_simpleogl assimp )
|
TARGET_LINK_LIBRARIES( assimp_simpleogl assimp )
|
||||||
SET_TARGET_PROPERTIES( assimp_simpleogl PROPERTIES
|
SET_TARGET_PROPERTIES( assimp_simpleogl PROPERTIES
|
||||||
OUTPUT_NAME assimp_simpleogl
|
OUTPUT_NAME assimp_simpleogl
|
||||||
|
|
|
@ -17,6 +17,8 @@ ADD_EXECUTABLE( assimp_simpletexturedogl WIN32
|
||||||
SimpleTexturedOpenGL/src/model_loading.cpp
|
SimpleTexturedOpenGL/src/model_loading.cpp
|
||||||
)
|
)
|
||||||
|
|
||||||
|
SET_PROPERTY(TARGET assimp_simpletexturedogl PROPERTY DEBUG_POSTFIX ${DEBUG_POSTFIX})
|
||||||
|
|
||||||
IF( WIN32 )
|
IF( WIN32 )
|
||||||
SET( PSDK_PATH "C:/Program Files/Microsoft Platform SDK/Bin" )
|
SET( PSDK_PATH "C:/Program Files/Microsoft Platform SDK/Bin" )
|
||||||
SET( PSDK_INC "C:/Program Files/Microsoft Platform SDK/Include" )
|
SET( PSDK_INC "C:/Program Files/Microsoft Platform SDK/Include" )
|
||||||
|
|
|
@ -17,6 +17,8 @@ ADD_EXECUTABLE( assimp_cmd
|
||||||
Export.cpp
|
Export.cpp
|
||||||
)
|
)
|
||||||
|
|
||||||
|
SET_PROPERTY(TARGET assimp_cmd PROPERTY DEBUG_POSTFIX ${DEBUG_POSTFIX})
|
||||||
|
|
||||||
TARGET_LINK_LIBRARIES( assimp_cmd assimp ${ZLIB_LIBRARIES})
|
TARGET_LINK_LIBRARIES( assimp_cmd assimp ${ZLIB_LIBRARIES})
|
||||||
SET_TARGET_PROPERTIES( assimp_cmd PROPERTIES
|
SET_TARGET_PROPERTIES( assimp_cmd PROPERTIES
|
||||||
OUTPUT_NAME assimp
|
OUTPUT_NAME assimp
|
||||||
|
|
|
@ -41,6 +41,8 @@ add_executable( assimp_viewer WIN32
|
||||||
txi.bmp
|
txi.bmp
|
||||||
)
|
)
|
||||||
|
|
||||||
|
SET_PROPERTY(TARGET assimp_viewer PROPERTY DEBUG_POSTFIX ${DEBUG_POSTFIX})
|
||||||
|
|
||||||
IF( WIN32 )
|
IF( WIN32 )
|
||||||
SET( PSDK_PATH "C:/Program Files/Microsoft Platform SDK/Bin" )
|
SET( PSDK_PATH "C:/Program Files/Microsoft Platform SDK/Bin" )
|
||||||
SET( PSDK_INC "C:/Program Files/Microsoft Platform SDK/Include" )
|
SET( PSDK_INC "C:/Program Files/Microsoft Platform SDK/Include" )
|
||||||
|
@ -76,3 +78,6 @@ ENDIF( WIN32 )
|
||||||
# Link the executable to the Hello library.
|
# Link the executable to the Hello library.
|
||||||
target_link_libraries ( assimp_viewer assimp ${DX9_LIBRARIES} comctl32.lib Winmm.lib )
|
target_link_libraries ( assimp_viewer assimp ${DX9_LIBRARIES} comctl32.lib Winmm.lib )
|
||||||
|
|
||||||
|
INSTALL( TARGETS assimp_viewer
|
||||||
|
DESTINATION "${BIN_INSTALL_DIR}" COMPONENT assimp-dev
|
||||||
|
)
|
||||||
|
|
Loading…
Reference in New Issue