cmake_minimum_required(VERSION 3.2)


set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -m32 -fpic")

add_compile_definitions(ASMJIT_STATIC)

#并将名称保存到 DIR_LIB_SRCS 变量
file(GLOB_RECURSE DIR_ASMJIT_CPPLIB_SRCS 
	"core/*.c"
	"core/*.cc"
	"core/*.cpp"
	"core/*.cxx"
	"arm/*.c"
	"arm/*.cc"
	"arm/*.cpp"
	"arm/*.cxx"
	"x86/*.c"
	"x86/*.cc"
	"x86/*.cpp"
	"x86/*.cxx"
)
#aux_source_directory(src DIR_LIB_SRCS)
# 生成库
add_library (ASMJIT STATIC ${DIR_ASMJIT_CPPLIB_SRCS})

#target_compile_definitions(YAML_CPP PUBLIC YAML_CPP_COMPILED_LIB)
#target_include_directories(ASMJIT PUBLIC "include")
