From 94fcfdeb9dbd8556a3997bc8a08a267af9507f79 Mon Sep 17 00:00:00 2001 From: Tan Meng Yue Date: Fri, 7 Dec 2018 18:01:08 +1100 Subject: [PATCH] Added installation of headers and target binaries --- CMakeLists.txt | 9 +++++++++ examples/gltfutil/CMakeLists.txt | 6 ++++++ examples/glview/CMakeLists.txt | 6 ++++++ examples/validator/CMakeLists.txt | 6 ++++++ 4 files changed, 27 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index db30ecf..8c08f27 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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 + ) diff --git a/examples/gltfutil/CMakeLists.txt b/examples/gltfutil/CMakeLists.txt index eb1720a..4b51891 100644 --- a/examples/gltfutil/CMakeLists.txt +++ b/examples/gltfutil/CMakeLists.txt @@ -7,3 +7,9 @@ include_directories(../../) file(GLOB gltfutil_sources *.cc *.h) add_executable(gltfutil ${gltfutil_sources}) + +install ( TARGETS + gltfutil + DESTINATION + bin + ) diff --git a/examples/glview/CMakeLists.txt b/examples/glview/CMakeLists.txt index 4d40557..06308ca 100644 --- a/examples/glview/CMakeLists.txt +++ b/examples/glview/CMakeLists.txt @@ -32,3 +32,9 @@ target_link_libraries ( glview ${COREVIDEO_LIBRARY} ${IOKIT_LIBRARY} ) + +install ( TARGETS + glview + DESTINATION + bin + ) diff --git a/examples/validator/CMakeLists.txt b/examples/validator/CMakeLists.txt index 4dd8a80..6a8321f 100644 --- a/examples/validator/CMakeLists.txt +++ b/examples/validator/CMakeLists.txt @@ -45,3 +45,9 @@ endif() # test-zone # enable_testing() + +install ( TARGETS + tinygltf-validator + DESTINATION + bin + )