Build libpakrd with cmake instead of using it as prebuilt library
This commit is contained in:
1 parent
c5dd826c66
commit
2de3e9b4df
12 files changed
+442
-15
No files matched your search
+1
-9
@@ -52,10 +52,6 @@ target_link_libraries(${PROJECT_NAME} PUBLIC
|
||||
SDL2_ttf
|
||||
)
|
||||
|
||||
add_custom_command(TARGET ${PROJECT_NAME} POST_BUILD
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different ${CMAKE_CURRENT_SOURCE_DIR}/intern/pakrd/libpakrd.so ${OUTPUT_BASE_DIR}/${CMAKE_BUILD_TYPE}/lib
|
||||
)
|
||||
|
||||
install(FILES
|
||||
include/aliases.h
|
||||
include/constants.h
|
||||
@@ -71,11 +67,6 @@ install(FILES
|
||||
CONFIGURATIONS Release
|
||||
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
|
||||
)
|
||||
install(FILES
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/intern/pakrd/libpakrd.so
|
||||
CONFIGURATIONS Release
|
||||
DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
)
|
||||
install(TARGETS ${PROJECT_NAME}
|
||||
CONFIGURATIONS Release
|
||||
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
|
||||
@@ -85,3 +76,4 @@ install(TARGETS ${PROJECT_NAME}
|
||||
|
||||
# SUB-DIRECTORIES
|
||||
add_subdirectory(extern)
|
||||
add_subdirectory(intern)
|
||||
Reference in new issue
Block a user