update webgl cmake with file copy and version gen
This commit is contained in:
@@ -1,6 +1,9 @@
|
|||||||
cmake_minimum_required(VERSION 3.4.1)
|
cmake_minimum_required(VERSION 3.4.1)
|
||||||
project(panopainter)
|
project(panopainter)
|
||||||
|
file(COPY ../data
|
||||||
|
DESTINATION ${CMAKE_CURRENT_BINARY_DIR})
|
||||||
add_executable(panopainter
|
add_executable(panopainter
|
||||||
|
../src/version.gen.h
|
||||||
src/main.cpp
|
src/main.cpp
|
||||||
../libs/yoga/yoga/log.cpp
|
../libs/yoga/yoga/log.cpp
|
||||||
../libs/yoga/yoga/Utils.cpp
|
../libs/yoga/yoga/Utils.cpp
|
||||||
@@ -129,3 +132,12 @@ target_include_directories(panopainter PRIVATE
|
|||||||
../libs/glad/include
|
../libs/glad/include
|
||||||
../libs/tinyfiledialogs
|
../libs/tinyfiledialogs
|
||||||
)
|
)
|
||||||
|
add_custom_command(
|
||||||
|
OUTPUT ../src/version.gen.h
|
||||||
|
COMMAND python scripts/pre-build.py release
|
||||||
|
WORKING_DIRECTORY ../../
|
||||||
|
)
|
||||||
|
add_custom_target(
|
||||||
|
gen_version ALL
|
||||||
|
DEPENDS ../src/version.gen.h
|
||||||
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user