mirror of
https://github.com/aap/librw.git
synced 2024-11-26 21:55:42 +00:00
build sample with cmake on Linux
This commit is contained in:
parent
6f5e6fe4e8
commit
36f95294fb
9
README.cmake
Normal file
9
README.cmake
Normal file
@ -0,0 +1,9 @@
|
||||
Build with cmake
|
||||
================
|
||||
|
||||
Linux
|
||||
|
||||
mkdir build
|
||||
cd build
|
||||
cmake .. -DLIBRW_PLATFORM=GL3 -DLIBRW_GL3_GFXLIB=SDL2
|
||||
make
|
@ -9,3 +9,13 @@ endif()
|
||||
if(LIBRW_PLATFORM_PS2)
|
||||
add_subdirectory(ps2test)
|
||||
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()
|
||||
|
8
tools/camera/CMakeLists.txt
Normal file
8
tools/camera/CMakeLists.txt
Normal 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
|
||||
)
|
8
tools/im2d/CMakeLists.txt
Normal file
8
tools/im2d/CMakeLists.txt
Normal 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
|
||||
)
|
8
tools/im3d/CMakeLists.txt
Normal file
8
tools/im3d/CMakeLists.txt
Normal 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
|
||||
)
|
8
tools/lights/CMakeLists.txt
Normal file
8
tools/lights/CMakeLists.txt
Normal file
@ -0,0 +1,8 @@
|
||||
add_executable(lights
|
||||
main.cpp lights.cpp
|
||||
)
|
||||
|
||||
target_link_libraries(lights
|
||||
PUBLIC
|
||||
librw librw_skeleton librw_skeleton_imgui
|
||||
)
|
8
tools/playground/CMakeLists.txt
Normal file
8
tools/playground/CMakeLists.txt
Normal 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
|
||||
)
|
8
tools/ska2anm/CMakeLists.txt
Normal file
8
tools/ska2anm/CMakeLists.txt
Normal file
@ -0,0 +1,8 @@
|
||||
add_executable(ska2anm
|
||||
ska2anm.cpp
|
||||
)
|
||||
|
||||
target_link_libraries(ska2anm
|
||||
PUBLIC
|
||||
librw
|
||||
)
|
8
tools/subrast/CMakeLists.txt
Normal file
8
tools/subrast/CMakeLists.txt
Normal file
@ -0,0 +1,8 @@
|
||||
add_executable(subrast
|
||||
main.cpp subrast.cpp
|
||||
)
|
||||
|
||||
target_link_libraries(subrast
|
||||
PUBLIC
|
||||
librw librw_skeleton librw_skeleton_imgui
|
||||
)
|
Loading…
Reference in New Issue
Block a user