mirror of https://github.com/procxx/kepka.git
Use FindPython3 cmake module to launch codegen_scheme
This commit is contained in:
parent
de6b51bc4e
commit
6c2d2613ad
|
@ -68,6 +68,7 @@ find_package(ZLIB REQUIRED)
|
|||
find_package(FFmpeg REQUIRED)
|
||||
find_package(Opus REQUIRED)
|
||||
find_package(Qt5 COMPONENTS Core Gui Widgets Network REQUIRED)
|
||||
find_package(Python3 REQUIRED)
|
||||
|
||||
if (NOT SWSCALE_FOUND)
|
||||
message(FATAL_ERROR "FFmpeg swscale is required")
|
||||
|
|
|
@ -103,7 +103,7 @@ add_custom_command(
|
|||
scheme.cpp
|
||||
scheme.h
|
||||
COMMAND
|
||||
python ${CMAKE_CURRENT_SOURCE_DIR}/SourceFiles/codegen/scheme/codegen_scheme.py
|
||||
${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/SourceFiles/codegen/scheme/codegen_scheme.py
|
||||
-o${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/Resources/scheme.tl
|
||||
WORKING_DIRECTORY .
|
||||
DEPENDS
|
||||
|
|
Loading…
Reference in New Issue