update webgl cmake with file copy and version gen

This commit is contained in:
2019-10-20 18:14:45 +02:00
parent 22a035f227
commit d23c2a97d5

View File

@@ -1,6 +1,9 @@
cmake_minimum_required(VERSION 3.4.1)
project(panopainter)
file(COPY ../data
DESTINATION ${CMAKE_CURRENT_BINARY_DIR})
add_executable(panopainter
../src/version.gen.h
src/main.cpp
../libs/yoga/yoga/log.cpp
../libs/yoga/yoga/Utils.cpp
@@ -129,3 +132,12 @@ target_include_directories(panopainter PRIVATE
../libs/glad/include
../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
)