2009-04-18 00:10:16 +00:00
|
|
|
# Make sure the compiler can find include files from our Hello library.
|
|
|
|
include_directories (
|
2010-03-03 22:07:59 +00:00
|
|
|
${Assimp_SOURCE_DIR}/include
|
|
|
|
${Assimp_SOURCE_DIR}/code
|
2012-02-18 10:53:58 +00:00
|
|
|
${DX9_INCLUDE_PATH}
|
2009-04-18 00:10:16 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
# Make sure the linker can find the Hello library once it is built.
|
2010-03-03 22:07:59 +00:00
|
|
|
link_directories (${Assimp_BINARY_DIR} ${AssetImporter_BINARY_DIR}/lib)
|
2009-04-18 00:10:16 +00:00
|
|
|
|
|
|
|
# Add executable called "helloDemo" that is built from the source files
|
|
|
|
# "demo.cxx" and "demo_b.cxx". The extensions are automatically found.
|
|
|
|
add_executable( assimp_viewer WIN32
|
|
|
|
AnimEvaluator.cpp
|
|
|
|
Background.cpp
|
|
|
|
Display.cpp
|
|
|
|
HelpDialog.cpp
|
|
|
|
Input.cpp
|
|
|
|
LogDisplay.cpp
|
|
|
|
LogWindow.cpp
|
|
|
|
Material.cpp
|
|
|
|
MeshRenderer.cpp
|
|
|
|
MessageProc.cpp
|
|
|
|
Normals.cpp
|
|
|
|
SceneAnimator.cpp
|
|
|
|
Shaders.cpp
|
|
|
|
assimp_view.cpp
|
|
|
|
stdafx.cpp
|
2009-04-18 22:21:14 +00:00
|
|
|
assimp_view.rc
|
|
|
|
banner.bmp
|
|
|
|
banner_pure.bmp
|
|
|
|
base_anim.bmp
|
|
|
|
base_display.bmp
|
|
|
|
base_inter.bmp
|
|
|
|
base_rendering.bmp
|
|
|
|
base_stats.bmp
|
|
|
|
fx.bmp
|
|
|
|
n.bmp
|
|
|
|
root.bmp
|
|
|
|
tx.bmp
|
|
|
|
txi.bmp
|
2009-04-18 00:10:16 +00:00
|
|
|
)
|
|
|
|
|
2012-02-18 10:55:47 +00:00
|
|
|
SET_PROPERTY(TARGET assimp_viewer PROPERTY DEBUG_POSTFIX ${DEBUG_POSTFIX})
|
|
|
|
|
2009-04-18 00:10:16 +00:00
|
|
|
IF( WIN32 )
|
|
|
|
SET( PSDK_PATH "C:/Program Files/Microsoft Platform SDK/Bin" )
|
|
|
|
SET( PSDK_INC "C:/Program Files/Microsoft Platform SDK/Include" )
|
|
|
|
|
|
|
|
FIND_PATH(DX9_INCLUDE_PATH d3d9.h
|
|
|
|
PATHS
|
|
|
|
"$ENV{DXSDK_DIR}/Include"
|
|
|
|
"$ENV{PROGRAMFILES}/Microsoft DirectX SDK/Include"
|
|
|
|
DOC "The directory where D3D9.h resides")
|
|
|
|
|
|
|
|
|
|
|
|
FIND_LIBRARY(D3D9_LIBRARY d3d9.lib
|
|
|
|
PATHS
|
|
|
|
"$ENV{DXSDK_DIR}/Lib/x86"
|
|
|
|
"$ENV{PROGRAMFILES}/Microsoft DirectX SDK/Lib/x86"
|
|
|
|
DOC "The directory where d3d9.lib resides")
|
|
|
|
|
|
|
|
FIND_LIBRARY(D3DX9_LIBRARY d3dx9.lib
|
|
|
|
PATHS
|
|
|
|
"$ENV{DXSDK_DIR}/Lib/x86"
|
|
|
|
"$ENV{PROGRAMFILES}/Microsoft DirectX SDK/Lib/x86"
|
|
|
|
DOC "The directory where d3dx9.lib resides")
|
|
|
|
|
|
|
|
SET( DX9_LIBRARIES ${D3D9_LIBRARY} ${D3DX9_LIBRARY} )
|
|
|
|
|
|
|
|
FIND_LIBRARY( WIN32_COMCTRL comctl32.lib
|
|
|
|
PATHS
|
|
|
|
"C:/Programme/Microsoft Platform SDK for Windows Server 2003 R2/Lib"
|
|
|
|
DOC "Path to psdk"
|
2012-02-18 12:43:48 +00:00
|
|
|
)
|
|
|
|
ADD_DEFINITIONS( -D_SCL_SECURE_NO_WARNINGS )
|
|
|
|
ADD_DEFINITIONS( -D_CRT_SECURE_NO_WARNINGS )
|
2009-04-18 00:10:16 +00:00
|
|
|
ENDIF( WIN32 )
|
|
|
|
|
|
|
|
# Link the executable to the Hello library.
|
|
|
|
target_link_libraries ( assimp_viewer assimp ${DX9_LIBRARIES} comctl32.lib Winmm.lib )
|
|
|
|
|
2012-02-18 10:55:47 +00:00
|
|
|
INSTALL( TARGETS assimp_viewer
|
|
|
|
DESTINATION "${BIN_INSTALL_DIR}" COMPONENT assimp-dev
|
|
|
|
)
|