initial cmake support
git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@477 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
parent
06807b6779
commit
49ddd969a7
5 changed files with 184 additions and 3 deletions
22
examples/basic/CMakeLists.txt
Normal file
22
examples/basic/CMakeLists.txt
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
# $Id$
|
||||
file(
|
||||
GLOB
|
||||
EXAMPLE_BASIC_SOURCES
|
||||
*.c
|
||||
)
|
||||
|
||||
foreach(PATH IN LISTS EXAMPLE_BASIC_SOURCES)
|
||||
get_filename_component(
|
||||
TARGET
|
||||
${PATH}
|
||||
NAME_WE
|
||||
)
|
||||
add_executable(
|
||||
${TARGET} ${PATH}
|
||||
)
|
||||
target_link_libraries(
|
||||
${TARGET}
|
||||
PRIVATE
|
||||
Mw
|
||||
)
|
||||
endforeach()
|
||||
Loading…
Add table
Add a link
Reference in a new issue