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})
|
||||
message("APPDIRS=${APPDIRS}")
|
||||
|
||||
if(BUILD_EXAMPLES)
|
||||
FOREACH(app ${APPDIRS})
|
||||
ADD_SUBDIRECTORY(${app})
|
||||
ENDFOREACH()
|
||||
endif(BUILD_EXAMPLES)
|
||||
|
@ -30,6 +30,8 @@ if(NOT ENABLE_PLPLOT)
|
||||
endif()
|
||||
add_definitions(--include cdtypes.h)
|
||||
add_definitions(--include cdlog.h)
|
||||
|
||||
if(BUILD_EXAMPLES)
|
||||
foreach(Example ${ExamplesFileList})
|
||||
message(STATUS "\tCreating build rule for ${Example}")
|
||||
get_filename_component(ExampleName ${Example} NAME_WE)
|
||||
@ -41,4 +43,4 @@ foreach(Example ${ExamplesFileList})
|
||||
add_dependencies(build_app_examples ${ExampleName})
|
||||
install(TARGETS ${ExampleName} DESTINATION bin/examples)
|
||||
endforeach(Example ${ExamplesFileList})
|
||||
|
||||
endif(BUILD_EXAMPLES)
|
||||
|
@ -24,7 +24,7 @@ ENDMACRO()
|
||||
function(CreatePAK project ResourceDIR PakPath rhpath)
|
||||
add_custom_target(${project}_assets
|
||||
COMMAND ${CMAKE_SOURCE_DIR}/scripts/idgen.py ${project} ${ResourceDIR} ${rhpath}
|
||||
COMMAND zip -q -r -D -0 ${PakPath} ./ -x "*.swp" ".*"
|
||||
COMMAND zip -q -r -D -0 ${PakPath} ./ -x "*.swp" ".*"
|
||||
WORKING_DIRECTORY ${ResourceDIR}
|
||||
COMMENT "Pckage Assets from ${ResourceDIR} to:${PakPath}")
|
||||
add_dependencies(${project} ${project}_assets)
|
||||
|
Loading…
Reference in New Issue
Block a user