/src/Assets_Assimp/tools/assimp_view/CMakeLists.txt
CMake | 77 lines | 61 code | 11 blank | 5 comment | 1 complexity | 778dd1c5e32d001e35e57273ab60dc38 MD5 | raw file
Possible License(s): AGPL-3.0, LGPL-2.1, LGPL-3.0, GPL-2.0
1# Make sure the compiler can find include files from our Hello library. 2include_directories ( 3 ${Assimp_SOURCE_DIR}/include 4 ${Assimp_SOURCE_DIR}/code 5) 6 7# Make sure the linker can find the Hello library once it is built. 8link_directories (${Assimp_BINARY_DIR} ${AssetImporter_BINARY_DIR}/lib) 9 10# Add executable called "helloDemo" that is built from the source files 11# "demo.cxx" and "demo_b.cxx". The extensions are automatically found. 12add_executable( assimp_viewer WIN32 13 AnimEvaluator.cpp 14 Background.cpp 15 Display.cpp 16 HelpDialog.cpp 17 Input.cpp 18 LogDisplay.cpp 19 LogWindow.cpp 20 Material.cpp 21 MeshRenderer.cpp 22 MessageProc.cpp 23 Normals.cpp 24 SceneAnimator.cpp 25 Shaders.cpp 26 assimp_view.cpp 27 stdafx.cpp 28 assimp_view.rc 29 banner.bmp 30 banner_pure.bmp 31 base_anim.bmp 32 base_display.bmp 33 base_inter.bmp 34 base_rendering.bmp 35 base_stats.bmp 36 fx.bmp 37 n.bmp 38 root.bmp 39 tx.bmp 40 txi.bmp 41) 42 43IF( WIN32 ) 44 SET( PSDK_PATH "C:/Program Files/Microsoft Platform SDK/Bin" ) 45 SET( PSDK_INC "C:/Program Files/Microsoft Platform SDK/Include" ) 46 47 FIND_PATH(DX9_INCLUDE_PATH d3d9.h 48 PATHS 49 "$ENV{DXSDK_DIR}/Include" 50 "$ENV{PROGRAMFILES}/Microsoft DirectX SDK/Include" 51 DOC "The directory where D3D9.h resides") 52 53 54 FIND_LIBRARY(D3D9_LIBRARY d3d9.lib 55 PATHS 56 "$ENV{DXSDK_DIR}/Lib/x86" 57 "$ENV{PROGRAMFILES}/Microsoft DirectX SDK/Lib/x86" 58 DOC "The directory where d3d9.lib resides") 59 60 FIND_LIBRARY(D3DX9_LIBRARY d3dx9.lib 61 PATHS 62 "$ENV{DXSDK_DIR}/Lib/x86" 63 "$ENV{PROGRAMFILES}/Microsoft DirectX SDK/Lib/x86" 64 DOC "The directory where d3dx9.lib resides") 65 66 SET( DX9_LIBRARIES ${D3D9_LIBRARY} ${D3DX9_LIBRARY} ) 67 68 FIND_LIBRARY( WIN32_COMCTRL comctl32.lib 69 PATHS 70 "C:/Programme/Microsoft Platform SDK for Windows Server 2003 R2/Lib" 71 DOC "Path to psdk" 72 ) 73ENDIF( WIN32 ) 74 75# Link the executable to the Hello library. 76target_link_libraries ( assimp_viewer assimp ${DX9_LIBRARIES} comctl32.lib Winmm.lib ) 77