Add install of tcc runtime for LibTCC install script.
@@ -77,7 +77,8 @@ set(LIBTCC_TARGET libtcc-depends)
set(LIBTCC_COMMIT_SHA "da11cf651576f94486dbd043dbfcde469e497574")
set(LIBTTC_LIBRARY_NAME "${CMAKE_SHARED_LIBRARY_PREFIX}tcc${CMAKE_SHARED_LIBRARY_SUFFIX}")
set(LIBTTC_LIBRARY_PATH "${PROJECT_OUTPUT_DIR}/${LIBTTC_LIBRARY_NAME}")
-set(LIBTTC_RUNTIME_INCLUDE_PATH "${LIBTCC_INSTALL_PREFIX}/lib/tcc/include")
+set(LIBTTC_RUNTIME_PATH "${LIBTCC_INSTALL_PREFIX}/lib/tcc")
+set(LIBTTC_RUNTIME_INCLUDE_PATH "${LIBTTC_RUNTIME_PATH}/include")
# LibTCC Proejct
ExternalProject_Add(${LIBTCC_TARGET}
@@ -100,6 +101,17 @@ install(FILES
COMPONENT runtime
)
+# Runtime files
+install(DIRECTORY
+ ${LIBTTC_RUNTIME_PATH}/
+ DESTINATION ${INSTALL_LIB}
+ COMPONENT runtime
+ FILES_MATCHING
+ PATTERN "*.a"
+ PATTERN "*.o"
+ PATTERN "include" EXCLUDE
+)
+
# Header files
install(DIRECTORY
${LIBTTC_RUNTIME_INCLUDE_PATH}/
