Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ab2d708
commit df3762d
Showing
6 changed files
with
81 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
if( NOT TARGET gltf ) | ||
|
||
get_filename_component( gltf_SOURCE_PATH "${CMAKE_CURRENT_LIST_DIR}/../../src" ABSOLUTE ) | ||
get_filename_component( CINDER_PATH "${CMAKE_CURRENT_LIST_DIR}/../../../.." ABSOLUTE ) | ||
|
||
list( APPEND gltf_SOURCES | ||
"${gltf_SOURCE_PATH}/cinder/Skeleton.cpp" | ||
"${gltf_SOURCE_PATH}/cinder/gltf/Types.cpp" | ||
"${gltf_SOURCE_PATH}/cinder/gltf/SimpleScene.cpp" | ||
"${gltf_SOURCE_PATH}/cinder/gltf/MeshLoader.cpp" | ||
"${gltf_SOURCE_PATH}/cinder/gltf/File.cpp" ) | ||
|
||
add_library( gltf "${gltf_SOURCES}" ) | ||
|
||
target_include_directories( gltf PUBLIC "${gltf_SOURCE_PATH}" | ||
) | ||
target_include_directories( gltf PRIVATE BEFORE "${CINDER_PATH}/include" ) | ||
|
||
target_compile_options( gltf PRIVATE "-std=c++11" ) | ||
|
||
if( NOT TARGET cinder ) | ||
include( "${CINDER_PATH}/proj/cmake/configure.cmake" ) | ||
find_package( cinder REQUIRED PATHS | ||
"${CINDER_PATH}/${CINDER_LIB_DIRECTORY}" | ||
"$ENV{CINDER_PATH}/${CINDER_LIB_DIRECTORY}" ) | ||
endif() | ||
|
||
target_link_libraries( gltf PRIVATE cinder ) | ||
|
||
endif() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
cmake_minimum_required( VERSION 3.0 FATAL_ERROR ) | ||
set( CMAKE_VERBOSE_MAKEFILE ON ) | ||
|
||
project( BasicAnimation ) | ||
|
||
get_filename_component( CINDER_PATH "${CMAKE_CURRENT_SOURCE_DIR}/../../../../../.." ABSOLUTE ) | ||
get_filename_component( SAMPLE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/../../" ABSOLUTE ) | ||
|
||
include( "${CINDER_PATH}/proj/cmake/modules/cinderMakeApp.cmake" ) | ||
|
||
ci_make_app( | ||
SOURCES ${SAMPLE_DIR}/src/BasicAnimationApp.cpp | ||
CINDER_PATH ${CINDER_PATH} | ||
BLOCKS gltf | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
cmake_minimum_required( VERSION 3.0 FATAL_ERROR ) | ||
set( CMAKE_VERBOSE_MAKEFILE ON ) | ||
|
||
project( BasicLoading ) | ||
|
||
get_filename_component( CINDER_PATH "${CMAKE_CURRENT_SOURCE_DIR}/../../../../../.." ABSOLUTE ) | ||
get_filename_component( SAMPLE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/../../" ABSOLUTE ) | ||
|
||
include( "${CINDER_PATH}/proj/cmake/modules/cinderMakeApp.cmake" ) | ||
|
||
ci_make_app( | ||
SOURCES ${SAMPLE_DIR}/src/BasicLoadingApp.cpp | ||
CINDER_PATH ${CINDER_PATH} | ||
BLOCKS gltf | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
cmake_minimum_required( VERSION 3.0 FATAL_ERROR ) | ||
set( CMAKE_VERBOSE_MAKEFILE ON ) | ||
|
||
project( SkeletalAnimation ) | ||
|
||
get_filename_component( CINDER_PATH "${CMAKE_CURRENT_SOURCE_DIR}/../../../../../.." ABSOLUTE ) | ||
get_filename_component( SAMPLE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/../../" ABSOLUTE ) | ||
|
||
include( "${CINDER_PATH}/proj/cmake/modules/cinderMakeApp.cmake" ) | ||
|
||
ci_make_app( | ||
SOURCES ${SAMPLE_DIR}/src/SkeletalAnimationApp.cpp | ||
CINDER_PATH ${CINDER_PATH} | ||
BLOCKS gltf | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters