Skip to content
This repository has been archived by the owner on Dec 4, 2024. It is now read-only.

Commit

Permalink
优化cmake
Browse files Browse the repository at this point in the history
  • Loading branch information
4ra1n committed Sep 14, 2023
1 parent ac836f7 commit aca7664
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions native/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -192,3 +192,16 @@ else ()

endif ()

execute_process(
COMMAND python main.py
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
RESULT_VARIABLE result
OUTPUT_VARIABLE output
)

if(result EQUAL 0)
message("BUILD FINISH")
else()
message("BUILD ERROR")
endif()

0 comments on commit aca7664

Please sign in to comment.