forked from pyrite-dev/milsko
clean cmake
git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@599 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
parent
fe512f67b6
commit
c55cd524dd
1 changed files with 0 additions and 24 deletions
|
|
@ -1,26 +1,2 @@
|
||||||
# $Id$
|
# $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
|
|
||||||
)
|
|
||||||
if(NOT CMAKE_SYSTEM_NAME STREQUAL "Windows")
|
|
||||||
target_link_libraries(
|
|
||||||
${TARGET}
|
|
||||||
PRIVATE
|
|
||||||
m
|
|
||||||
)
|
|
||||||
endif()
|
|
||||||
endforeach()
|
|
||||||
|
|
||||||
add_subdirectory(basic)
|
add_subdirectory(basic)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue