Added installation of headers and target binaries

This commit is contained in:
Tan Meng Yue 2018-12-07 18:01:08 +11:00
parent 2dcf79566f
commit 94fcfdeb9d
4 changed files with 27 additions and 0 deletions

View File

@ -11,3 +11,12 @@ ADD_EXECUTABLE ( loader_example
ADD_SUBDIRECTORY ( examples/gltfutil )
ADD_SUBDIRECTORY ( examples/glview )
ADD_SUBDIRECTORY ( examples/validator )
INSTALL ( FILES
json.hpp
stb_image.h
stb_image_write.h
tiny_gltf.h
DESTINATION
include
)

View File

@ -7,3 +7,9 @@ include_directories(../../)
file(GLOB gltfutil_sources *.cc *.h)
add_executable(gltfutil ${gltfutil_sources})
install ( TARGETS
gltfutil
DESTINATION
bin
)

View File

@ -32,3 +32,9 @@ target_link_libraries ( glview
${COREVIDEO_LIBRARY}
${IOKIT_LIBRARY}
)
install ( TARGETS
glview
DESTINATION
bin
)

View File

@ -45,3 +45,9 @@ endif()
# test-zone
# enable_testing()
install ( TARGETS
tinygltf-validator
DESTINATION
bin
)