mirror of
https://gitea.nishi.boats/pyrite-dev/milsko
synced 2026-01-22 09:04:08 +00:00
git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@481 b9cfdab3-6d41-4d17-bbe4-086880011989
36 lines
552 B
CMake
36 lines
552 B
CMake
# $Id$
|
|
file(
|
|
GLOB
|
|
EXAMPLES_GLDEMOS_SOURCES
|
|
*.c
|
|
)
|
|
list(REMOVE_ITEM EXAMPLES_GLDEMOS_SOURCES ${CMAKE_SOURCE_DIR}/examples/gldemos/glutlayer.c)
|
|
|
|
foreach(PATH IN LISTS EXAMPLES_GLDEMOS_SOURCES)
|
|
get_filename_component(
|
|
TARGET
|
|
${PATH}
|
|
NAME_WE
|
|
)
|
|
add_executable(
|
|
${TARGET} ${PATH}
|
|
)
|
|
target_include_directories(
|
|
${TARGET}
|
|
PRIVATE
|
|
${GL_INCLUDE_DIRS}
|
|
${CMAKE_SOURCE_DIR}/include
|
|
)
|
|
target_link_directories(
|
|
${TARGET}
|
|
PRIVATE
|
|
${GL_LIBRARY_DIRS}
|
|
)
|
|
target_link_libraries(
|
|
${TARGET}
|
|
PRIVATE
|
|
Mw
|
|
${GL_LIBRARIES}
|
|
)
|
|
endforeach()
|