quickjs msvc

This commit is contained in:
ekibun
2020-08-20 12:55:22 +08:00
parent e5a4411fa7
commit b3c9f5b23f
38 changed files with 66454 additions and 299 deletions

View File

@@ -1,8 +1,8 @@
cmake_minimum_required(VERSION 3.10)
project(runner LANGUAGES CXX)
set(BINARY_NAME "flutter_qjs_example")
set(APPLICATION_ID "soko.ekibun.flutter_qjs")
set(BINARY_NAME "example")
set(APPLICATION_ID "soko.ekibun.example")
cmake_policy(SET CMP0063 NEW)
@@ -19,8 +19,7 @@ endif()
# Compilation settings that should be applied to most targets.
function(APPLY_STANDARD_SETTINGS TARGET)
target_compile_features(${TARGET} PUBLIC cxx_std_17)
# target_compile_options(${TARGET} PRIVATE -Wall -Werror)
target_compile_options(${TARGET} PRIVATE -Wall)
target_compile_options(${TARGET} PRIVATE -Wall -Werror)
target_compile_options(${TARGET} PRIVATE "$<$<NOT:$<CONFIG:Debug>>:-O3>")
target_compile_definitions(${TARGET} PRIVATE "$<$<NOT:$<CONFIG:Debug>>:NDEBUG>")
endfunction()