fix makefiles

This commit is contained in:
zontreck 2024-07-31 03:37:14 -07:00
parent b9411fa714
commit e74f3da820

View file

@ -22,19 +22,19 @@ add_library(ac SHARED ${SOURCES})
set_target_properties(ac PROPERTIES
VERSION ${PROJECT_VERSION}
SOVERSION 1
PUBLIC_HEADER "${UTIL_HEADERS};${TYPE_HEADERS};${NBT_HEADERS}"
)
# Optionally, add include directories if needed
# target_include_directories(ac PRIVATE ${CMAKE_SOURCE_DIR}/include)
# Optionally, link to other libraries if needed
# target_link_libraries(ac PRIVATE some_library)
# Install targets
# Ensure installation directories are set correctly
set(CMAKE_INSTALL_INCLUDEDIR "include" CACHE PATH "Directory for include files")
# Install the shared library
install(TARGETS ac
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
PUBLIC_HEADER DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/libac
)
# Install headers into specific directories