18bf80f4bSopenharmony_ci# 28bf80f4bSopenharmony_ci# Copyright (C) 2019 Huawei Technologies Co, Ltd. 38bf80f4bSopenharmony_ci# 48bf80f4bSopenharmony_ci 58bf80f4bSopenharmony_cicmake_minimum_required(VERSION 3.10) 68bf80f4bSopenharmony_ci 78bf80f4bSopenharmony_ciproject(LumeAssetCompiler) 88bf80f4bSopenharmony_ci 98bf80f4bSopenharmony_ciset(CMAKE_CXX_STANDARD 17) 108bf80f4bSopenharmony_ciset(CMAKE_CXX_STANDARD_REQUIRED ON) 118bf80f4bSopenharmony_ciset(CMAKE_CXX_EXTENSIONS OFF) 128bf80f4bSopenharmony_ciset_property(GLOBAL PROPERTY USE_FOLDERS ON) 138bf80f4bSopenharmony_ci 148bf80f4bSopenharmony_ciset(sources 158bf80f4bSopenharmony_ci src/main.cpp 168bf80f4bSopenharmony_ci src/dir.cpp 178bf80f4bSopenharmony_ci src/dir.h 188bf80f4bSopenharmony_ci src/elf_common.h 198bf80f4bSopenharmony_ci src/elf32.h 208bf80f4bSopenharmony_ci src/elf64.h 218bf80f4bSopenharmony_ci src/coff.h 228bf80f4bSopenharmony_ci) 238bf80f4bSopenharmony_cisource_group(TREE ${CMAKE_CURRENT_SOURCE_DIR} FILES ${sources}) 248bf80f4bSopenharmony_ci 258bf80f4bSopenharmony_ciadd_executable(LumeAssetCompiler ${sources}) 268bf80f4bSopenharmony_citarget_include_directories(LumeAssetCompiler PRIVATE include src) 278bf80f4bSopenharmony_citarget_compile_definitions(LumeAssetCompiler PRIVATE _CRT_SECURE_NO_WARNINGS) 288bf80f4bSopenharmony_ciif(UNIX AND NOT APPLE) 298bf80f4bSopenharmony_ci#make a static linked executable for linux. 308bf80f4bSopenharmony_citarget_link_libraries(LumeAssetCompiler -static) 318bf80f4bSopenharmony_ciendif()