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
|
|
|
|
|
2021-07-08 15:09:40 +01:00
|
|
|
imgui/imgui_impl_rw.cpp
|
|
|
|
imgui/imgui_impl_rw.h
|
|
|
|
|
2021-06-22 21:51:20 +01:00
|
|
|
imgui/imconfig.h
|
|
|
|
imgui/imgui.cpp
|
2021-07-08 15:09:40 +01:00
|
|
|
imgui/imgui.h
|
2021-06-22 21:51:20 +01:00
|
|
|
imgui/imgui_demo.cpp
|
|
|
|
imgui/imgui_draw.cpp
|
|
|
|
imgui/imgui_internal.h
|
2021-07-08 15:09:40 +01:00
|
|
|
imgui/imgui_tables.cpp
|
|
|
|
imgui/imgui_widgets.cpp
|
|
|
|
imgui/imstb_rectpack.h
|
|
|
|
imgui/imstb_textedit.h
|
|
|
|
imgui/imstb_truetype.h
|
|
|
|
|
2021-06-22 21:51:20 +01:00
|
|
|
imgui/ImGuizmo.cpp
|
|
|
|
imgui/ImGuizmo.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
|
2021-07-08 15:09:40 +01:00
|
|
|
imgui/imstb_rectpack.h
|
|
|
|
imgui/imstb_textedit.h
|
|
|
|
imgui/imstb_truetype.h
|
2021-06-22 21:51:20 +01:00
|
|
|
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()
|