mirror of
https://gitee.com/houstudio/Cdroid.git
synced 2024-11-29 18:59:14 +08:00
fix cmakelists.txt
This commit is contained in:
parent
ad54042c8e
commit
c6cb6da7b5
@ -1,6 +1,8 @@
|
|||||||
SUBDIRLIST(APPDIRS ${CMAKE_CURRENT_SOURCE_DIR})
|
SUBDIRLIST(APPDIRS ${CMAKE_CURRENT_SOURCE_DIR})
|
||||||
message("APPDIRS=${APPDIRS}")
|
message("APPDIRS=${APPDIRS}")
|
||||||
|
|
||||||
|
if(BUILD_EXAMPLES)
|
||||||
FOREACH(app ${APPDIRS})
|
FOREACH(app ${APPDIRS})
|
||||||
ADD_SUBDIRECTORY(${app})
|
ADD_SUBDIRECTORY(${app})
|
||||||
ENDFOREACH()
|
ENDFOREACH()
|
||||||
|
endif(BUILD_EXAMPLES)
|
||||||
|
@ -30,6 +30,8 @@ if(NOT ENABLE_PLPLOT)
|
|||||||
endif()
|
endif()
|
||||||
add_definitions(--include cdtypes.h)
|
add_definitions(--include cdtypes.h)
|
||||||
add_definitions(--include cdlog.h)
|
add_definitions(--include cdlog.h)
|
||||||
|
|
||||||
|
if(BUILD_EXAMPLES)
|
||||||
foreach(Example ${ExamplesFileList})
|
foreach(Example ${ExamplesFileList})
|
||||||
message(STATUS "\tCreating build rule for ${Example}")
|
message(STATUS "\tCreating build rule for ${Example}")
|
||||||
get_filename_component(ExampleName ${Example} NAME_WE)
|
get_filename_component(ExampleName ${Example} NAME_WE)
|
||||||
@ -41,4 +43,4 @@ foreach(Example ${ExamplesFileList})
|
|||||||
add_dependencies(build_app_examples ${ExampleName})
|
add_dependencies(build_app_examples ${ExampleName})
|
||||||
install(TARGETS ${ExampleName} DESTINATION bin/examples)
|
install(TARGETS ${ExampleName} DESTINATION bin/examples)
|
||||||
endforeach(Example ${ExamplesFileList})
|
endforeach(Example ${ExamplesFileList})
|
||||||
|
endif(BUILD_EXAMPLES)
|
||||||
|
Loading…
Reference in New Issue
Block a user