mirror of
https://github.com/thestk/stk
synced 2026-01-11 20:11:52 +00:00
include add_subdirectory for STK projects
This commit is contained in:
11
projects/examples/CMakeLists.txt
Normal file
11
projects/examples/CMakeLists.txt
Normal file
@@ -0,0 +1,11 @@
|
||||
project(examples)
|
||||
|
||||
file(GLOB EXAMPLE_SRC "./*.cpp")
|
||||
|
||||
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${PROJECT_SOURCE_DIR}")
|
||||
|
||||
foreach(src ${EXAMPLE_SRC})
|
||||
get_filename_component(src_bin ${src} NAME_WE)
|
||||
add_executable(${src_bin} ${src})
|
||||
target_link_libraries(${src_bin} PUBLIC stk)
|
||||
endforeach()
|
||||
Reference in New Issue
Block a user