summaryrefslogtreecommitdiff
path: root/src/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'src/CMakeLists.txt')
-rw-r--r--src/CMakeLists.txt8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 78b233d..82d6a6b 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -2,9 +2,15 @@
#LIBRARY
include_directories(.)
aux_source_directory(. LWEXT4_SRC)
-add_library(lwext4 ${LWEXT4_SRC})
+add_library(lwext4 STATIC ${LWEXT4_SRC})
+
if (DEFINED SIZE)
add_custom_target(lib_size ALL DEPENDS lwext4 COMMAND ${SIZE} liblwext4.a)
else()
endif()
+
+if (DEFINED INSTALL_LIB)
+INSTALL(TARGETS lwext4 DESTINATION /usr/local/lib)
+INSTALL(DIRECTORY ${PROJECT_BINARY_DIR}/include/. DESTINATION /usr/local/include/lwext4)
+endif() \ No newline at end of file