adds install targets
This commit is contained in:
parent
51ac172b32
commit
f5700b1761
1 changed files with 4 additions and 0 deletions
|
@ -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)
|
Loading…
Reference in a new issue