File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed
Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -655,6 +655,8 @@ endfunction(aui_deploy_library)
655655function (_auib_collect_srcs _out dir)
656656 file (GLOB_RECURSE SRCS
657657 ${dir} /*.cpp
658+ ${dir} /*.cxx
659+ ${dir} /*.cc
658660 ${dir} /*.c
659661 ${dir} /*.mm
660662 ${dir} /*.m)
@@ -669,9 +671,18 @@ function(auib_add_srcs TARGET DIR)
669671endfunction ()
670672
671673function (aui_executable AUI_MODULE_NAME)
672- _auib_collect_srcs(SRCS ${CMAKE_CURRENT_SOURCE_DIR} /src/)
674+ set (_src_dir ${CMAKE_CURRENT_SOURCE_DIR} /src/)
675+ if (NOT EXISTS ${_src_dir} )
676+ message (FATAL_ERROR "aui_executable can't find \" ${_src_dir} \" directory" )
677+ endif ()
678+ _auib_collect_srcs(SRCS ${_src_dir} )
673679 _auib_collect_srcs(SRCS_TESTS_TMP ${CMAKE_CURRENT_SOURCE_DIR} /tests/)
674680
681+ list (LENGTH SRCS SRCS_COUNT)
682+ if (SRCS_COUNT LESS_EQUAL 0)
683+ message (FATAL_ERROR "aui_executable can't find source files in \" ${_src_dir} \" , i.e., \" ${_src_dir} main.cpp\" " )
684+ endif ()
685+
675686 set (options WIN32_SUBSYSTEM_CONSOLE)
676687 set (oneValueArgs COMPILE_ASSETS EXPORT)
677688 set (multiValueArgs ADDITIONAL_SRCS)
You can’t perform that action at this time.
0 commit comments