summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2018-01-22 04:21:39 +0100
committerPetr Mrázek <peterix@gmail.com>2018-01-22 04:21:39 +0100
commitc3ec5b3bc76f63c0de93d29077e3fc67e6222795 (patch)
tree09ce4b67ffd687fb48023f1a739977d9e0cf8017
parent4b305bbd2ac0e7a26987baf7949a484a87b474d4 (diff)
downloadProject-Tick-c3ec5b3bc76f63c0de93d29077e3fc67e6222795.tar.gz
Project-Tick-c3ec5b3bc76f63c0de93d29077e3fc67e6222795.zip
Add cmake install command
-rw-r--r--CMakeLists.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 904f00bc2d..dfad5e650f 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -46,6 +46,11 @@ endif()
add_library(${NBT_NAME} ${NBT_SOURCES})
target_include_directories(${NBT_NAME} PUBLIC include ${CMAKE_CURRENT_BINARY_DIR})
+# Install it
+if(DEFINED NBT_DEST_DIR)
+ install(TARGETS ${NBT_NAME} DESTINATION ${NBT_DEST_DIR})
+endif()
+
if(NBT_USE_ZLIB)
target_link_libraries(${NBT_NAME} z)
endif()