adds install targets

This commit is contained in:
zontreck 2024-07-31 03:11:08 -07:00
parent 51ac172b32
commit f5700b1761

View file

@ -9,6 +9,7 @@ set(CMAKE_CXX_STANDARD_REQUIRED True)
# Add source files
file(GLOB SOURCES "src/utils/*.cpp" "src/types/*.cpp" "src/nbt/*.cpp")
file(GLOB HEADERS "src/utils/*.h" "src/types/*.h" "src/nbt/*.h")
# Add an shared library target
add_library(ac SHARED ${SOURCES})
@ -16,3 +17,6 @@ add_library(ac SHARED ${SOURCES})
# Optionally, if you have any additional include directories or libraries, add them here:
# target_include_directories(ac PRIVATE ${CMAKE_SOURCE_DIR}/include)
# target_link_libraries(ac PRIVATE some_library)
install(TARGETS ac LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR})
install(TARGETS ac PUBLIC_HEADER ${CMAKE_INSTALL_INCLUDEDIR}/libac)