mirror of
https://gitea.nishi.boats/pyrite-dev/milsko
synced 2026-01-03 08:00:50 +00:00
add them back
git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@486 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
@@ -162,3 +162,5 @@ install(
|
|||||||
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
|
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
|
||||||
FILES_MATCHING PATTERN "*.h"
|
FILES_MATCHING PATTERN "*.h"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
add_subdirectory(examples)
|
||||||
|
|||||||
19
examples/CMakeLists.txt
Normal file
19
examples/CMakeLists.txt
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
# $Id$
|
||||||
|
file(
|
||||||
|
GLOB
|
||||||
|
EXAMPLES_SOURCES
|
||||||
|
*.c
|
||||||
|
)
|
||||||
|
list(REMOVE_ITEM EXAMPLES_SOURCES ${CMAKE_SOURCE_DIR}/examples/harvard.c)
|
||||||
|
|
||||||
|
foreach(PATH IN LISTS EXAMPLES_SOURCES)
|
||||||
|
get_filename_component(TARGET ${PATH} NAME_WE)
|
||||||
|
add_executable(${TARGET} ${PATH})
|
||||||
|
target_link_libraries(
|
||||||
|
${TARGET}
|
||||||
|
PRIVATE
|
||||||
|
Mw
|
||||||
|
)
|
||||||
|
endforeach()
|
||||||
|
|
||||||
|
add_subdirectory(basic)
|
||||||
16
examples/basic/CMakeLists.txt
Normal file
16
examples/basic/CMakeLists.txt
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
# $Id$
|
||||||
|
file(
|
||||||
|
GLOB
|
||||||
|
EXAMPLES_BASIC_SOURCES
|
||||||
|
*.c
|
||||||
|
)
|
||||||
|
|
||||||
|
foreach(PATH IN LISTS EXAMPLES_BASIC_SOURCES)
|
||||||
|
get_filename_component(TARGET ${PATH} NAME_WE)
|
||||||
|
add_executable(${TARGET} ${PATH})
|
||||||
|
target_link_libraries(
|
||||||
|
${TARGET}
|
||||||
|
PRIVATE
|
||||||
|
Mw
|
||||||
|
)
|
||||||
|
endforeach()
|
||||||
Reference in New Issue
Block a user