Files
Cocos2d-Lua-Community/external/lua/cjson/CMakeLists.txt
2020-01-18 11:17:10 +08:00

29 lines
496 B
CMake

cmake_minimum_required(VERSION 3.6)
set(lib_name cjson)
set(target_name ext_${lib_name})
project(${lib_name})
set(${target_name}_src
fpconv.c
lua_cjson.c
strbuf.c
)
add_library(${target_name} STATIC
${${target_name}_src}
)
target_include_directories(${target_name}
PRIVATE ../luajit/include
)
set_target_properties(${target_name}
PROPERTIES
ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/lib"
LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/lib"
FOLDER "External"
)