Add cmake config file

Big thanks for @madebr who made all work
This commit is contained in:
Filip Gawin
2020-10-27 00:41:07 +01:00
parent 5e5a624681
commit 7ce4328601
15 changed files with 688 additions and 0 deletions

11
tools/CMakeLists.txt Normal file
View File

@ -0,0 +1,11 @@
if(NOT LIBRW_PLATFORM_PS2)
add_subdirectory(dumprwtree)
endif()
if(TARGET librw_skeleton_imgui)
add_subdirectory(imguitest)
endif()
if(LIBRW_PLATFORM_PS2)
add_subdirectory(ps2test)
endif()

View File

@ -0,0 +1,14 @@
add_executable(dumprwtree
dumprwtree.cpp
)
target_link_libraries(dumprwtree
PUBLIC
librw
)
if(LIBRW_INSTALL)
install(TARGETS dumprwtree
RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}"
)
endif()

View File

@ -0,0 +1,15 @@
add_executable(imguitest WIN32
main.cpp
)
target_link_libraries(imguitest
PUBLIC
librw
librw_skeleton_imgui
)
if(LIBRW_INSTALL)
install(TARGETS imguitest
RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}"
)
endif()