build sample with cmake on Linux

This commit is contained in:
Seo Youngjin 2021-03-23 17:00:09 +09:00 committed by Anonymous Maarten
parent 6f5e6fe4e8
commit 36f95294fb
9 changed files with 75 additions and 0 deletions

9
README.cmake Normal file
View File

@ -0,0 +1,9 @@
Build with cmake
================
Linux
mkdir build
cd build
cmake .. -DLIBRW_PLATFORM=GL3 -DLIBRW_GL3_GFXLIB=SDL2
make

View File

@ -9,3 +9,13 @@ endif()
if(LIBRW_PLATFORM_PS2) if(LIBRW_PLATFORM_PS2)
add_subdirectory(ps2test) add_subdirectory(ps2test)
endif() endif()
if(NOT LIBRW_PLATFORM_PS2)
add_subdirectory(playground)
add_subdirectory(lights)
add_subdirectory(subrast)
add_subdirectory(camera)
add_subdirectory(im2d)
add_subdirectory(im3d)
add_subdirectory(ska2anm)
endif()

View File

@ -0,0 +1,8 @@
add_executable(camera
main.cpp camexamp.cpp viewer.cpp
)
target_link_libraries(camera
PUBLIC
librw librw_skeleton librw_skeleton_imgui
)

View File

@ -0,0 +1,8 @@
add_executable(im2d
im2d.cpp linelist.cpp main.cpp polyline.cpp trifan.cpp trilist.cpp tristrip.cpp
)
target_link_libraries(im2d
PUBLIC
librw librw_skeleton librw_skeleton_imgui
)

View File

@ -0,0 +1,8 @@
add_executable(im3d
im3d.cpp linelist.cpp main.cpp polyline.cpp trifan.cpp trilist.cpp tristrip.cpp
)
target_link_libraries(im3d
PUBLIC
librw librw_skeleton librw_skeleton_imgui
)

View File

@ -0,0 +1,8 @@
add_executable(lights
main.cpp lights.cpp
)
target_link_libraries(lights
PUBLIC
librw librw_skeleton librw_skeleton_imgui
)

View File

@ -0,0 +1,8 @@
add_executable(playgound
camera.cpp font.cpp main.cpp ras_test.cpp splines.cpp tl_tests.cpp
)
target_link_libraries(playgound
PUBLIC
librw librw_skeleton
)

View File

@ -0,0 +1,8 @@
add_executable(ska2anm
ska2anm.cpp
)
target_link_libraries(ska2anm
PUBLIC
librw
)

View File

@ -0,0 +1,8 @@
add_executable(subrast
main.cpp subrast.cpp
)
target_link_libraries(subrast
PUBLIC
librw librw_skeleton librw_skeleton_imgui
)