2020-10-26 23:41:07 +00:00
|
|
|
add_library(librw_skeleton
|
2021-06-22 21:51:20 +01:00
|
|
|
glfw.cpp
|
|
|
|
sdl2.cpp
|
|
|
|
skeleton.cpp
|
|
|
|
skeleton.h
|
|
|
|
win.cpp
|
|
|
|
|
|
|
|
imgui/imconfig.h
|
|
|
|
imgui/imgui.cpp
|
|
|
|
imgui/imgui_demo.cpp
|
|
|
|
imgui/imgui_draw.cpp
|
|
|
|
imgui/imgui.h
|
|
|
|
imgui/imgui_impl_rw.cpp
|
|
|
|
imgui/imgui_impl_rw.h
|
|
|
|
imgui/imgui_internal.h
|
|
|
|
imgui/ImGuizmo.cpp
|
|
|
|
imgui/ImGuizmo.h
|
|
|
|
imgui/stb_rect_pack.h
|
|
|
|
imgui/stb_textedit.h
|
|
|
|
imgui/stb_truetype.h
|
2020-12-03 17:11:55 +00:00
|
|
|
)
|
2021-06-22 21:51:20 +01:00
|
|
|
add_library(librw::skeleton ALIAS librw_skeleton)
|
2020-10-26 23:41:07 +00:00
|
|
|
|
|
|
|
set_target_properties(librw_skeleton
|
|
|
|
PROPERTIES
|
|
|
|
PREFIX ""
|
2021-06-22 21:51:20 +01:00
|
|
|
EXPORT_NAME skeleton
|
2020-12-03 17:11:55 +00:00
|
|
|
)
|
2020-10-26 23:41:07 +00:00
|
|
|
|
|
|
|
target_link_libraries(librw_skeleton
|
2021-06-22 21:51:20 +01:00
|
|
|
PRIVATE
|
2020-10-26 23:41:07 +00:00
|
|
|
librw
|
2020-12-03 17:11:55 +00:00
|
|
|
)
|
2020-10-26 23:41:07 +00:00
|
|
|
|
|
|
|
target_include_directories(librw_skeleton
|
2021-06-22 21:51:20 +01:00
|
|
|
PUBLIC
|
2020-10-26 23:41:07 +00:00
|
|
|
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
|
2021-06-22 21:51:20 +01:00
|
|
|
$<INSTALL_INTERFACE:${LIBRW_INSTALL_INCLUDEDIR}/skeleton>
|
2020-12-03 17:11:55 +00:00
|
|
|
)
|
2020-10-26 23:41:07 +00:00
|
|
|
|
|
|
|
if(LIBRW_INSTALL)
|
|
|
|
install(
|
|
|
|
FILES
|
|
|
|
skeleton.h
|
|
|
|
DESTINATION "${LIBRW_INSTALL_INCLUDEDIR}/skeleton"
|
2020-12-03 17:11:55 +00:00
|
|
|
)
|
2020-10-26 23:41:07 +00:00
|
|
|
|
2021-06-22 21:51:20 +01:00
|
|
|
install(
|
|
|
|
FILES
|
|
|
|
imgui/imconfig.h
|
|
|
|
imgui/imgui.h
|
|
|
|
imgui/imgui_impl_rw.h
|
|
|
|
imgui/imgui_internal.h
|
|
|
|
imgui/ImGuizmo.h
|
|
|
|
imgui/stb_textedit.h
|
|
|
|
DESTINATION "${LIBRW_INSTALL_INCLUDEDIR}/skeleton/imgui"
|
|
|
|
)
|
|
|
|
|
|
|
|
install(
|
|
|
|
FILES
|
|
|
|
imgui/LICENSE_imgui.txt
|
|
|
|
imgui/LICENSE_imguizmo.txt
|
|
|
|
DESTINATION "${CMAKE_INSTALL_DOCDIR}"
|
|
|
|
)
|
|
|
|
|
2020-10-26 23:41:07 +00:00
|
|
|
install(
|
|
|
|
TARGETS librw_skeleton
|
|
|
|
EXPORT librw-targets
|
|
|
|
RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}"
|
|
|
|
LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}"
|
|
|
|
ARCHIVE DESTINATION "${CMAKE_INSTALL_LIBDIR}"
|
2020-12-03 17:11:55 +00:00
|
|
|
)
|
2020-10-26 23:41:07 +00:00
|
|
|
endif()
|