Skip to content

Commit

Permalink
Add install of tcc runtime for LibTCC install script.
Browse files Browse the repository at this point in the history
  • Loading branch information
viferga committed Nov 16, 2021
1 parent c26b52d commit c0c099b
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion cmake/InstallLibTCC.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand All @@ -100,6 +101,14 @@ install(FILES
COMPONENT runtime
)

# Runtime files
install(DIRECTORY
${LIBTTC_RUNTIME_PATH}/
DESTINATION ${INSTALL_LIB}
COMPONENT runtime
FILES_MATCHING PATTERN "*.a" PATTERN "*.o"
)

# Header files
install(DIRECTORY
${LIBTTC_RUNTIME_INCLUDE_PATH}/
Expand Down

0 comments on commit c0c099b

Please sign in to comment.