Add lib for opengl classes
This commit is contained in:
parent
998628bb6c
commit
eccfbc8a80
@ -3,3 +3,4 @@ project(gtk-graph-view-dev)
|
||||
|
||||
add_subdirectory(lib)
|
||||
add_subdirectory(app)
|
||||
add_subdirectory(shimatta-opengl)
|
||||
|
17
shimatta-opengl/CMakeLists.txt
Normal file
17
shimatta-opengl/CMakeLists.txt
Normal file
@ -0,0 +1,17 @@
|
||||
cmake_minimum_required(VERSION 3.5)
|
||||
project(shimatta-opengl LANGUAGES C)
|
||||
|
||||
find_package(PkgConfig REQUIRED)
|
||||
pkg_search_module(GLIB REQUIRED glib-2.0)
|
||||
pkg_check_modules(EPOXY REQUIRED epoxy)
|
||||
|
||||
add_compile_options(-Wall -Wextra -Wold-style-declaration -Wuninitialized -Wmaybe-uninitialized -Wunused-parameter)
|
||||
aux_source_directory("src" SRC_DIR)
|
||||
|
||||
add_library(${PROJECT_NAME} SHARED ${SRC_DIR})
|
||||
target_include_directories(${PROJECT_NAME} PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/include)
|
||||
target_include_directories(${PROJECT_NAME} PRIVATE ${EPOXY_INCLUDE_DIRS})
|
||||
target_link_libraries(${PROJECT_NAME} PUBLIC ${GLIB_LDFLAGS} ${EPOXY_LDFLAGS})
|
||||
target_link_directories(${PROJECT_NAME} PUBLIC ${GLIB_LINK_DIRS} ${EPOXY_LINK_DIRS})
|
||||
target_include_directories(${PROJECT_NAME} PUBLIC ${GLIB_INCLUDE_DIRS})
|
||||
|
0
shimatta-opengl/include/shimatta-opengl-program.h
Normal file
0
shimatta-opengl/include/shimatta-opengl-program.h
Normal file
0
shimatta-opengl/src/shimatta-opengl-program.c
Normal file
0
shimatta-opengl/src/shimatta-opengl-program.c
Normal file
Loading…
Reference in New Issue
Block a user