CMakeLists.txt (1030B)
1 include_directories ( 2 "${PROJECT_SOURCE_DIR}/external" 3 "${PROJECT_SOURCE_DIR}/include" 4 "${PROJECT_SOURCE_DIR}/config" 5 ) 6 7 set (SOURCES 8 ${PROJECT_SOURCE_DIR}/external/hash/cmetrohash64.c 9 ${PROJECT_SOURCE_DIR}/external/hash/str_set.c 10 ${PROJECT_SOURCE_DIR}/external/hash/ptr_set.c 11 hash_tables/symbol_table.c 12 hash_tables/scope_table.c 13 hash_tables/name_table.c 14 hash_tables/schema_table.c 15 hash_tables/value_set.c 16 fileio.c 17 parser.c 18 semantics.c 19 coerce.c 20 flatcc.c 21 codegen_c.c 22 codegen_c_reader.c 23 codegen_c_sort.c 24 codegen_c_builder.c 25 codegen_c_verifier.c 26 codegen_c_sorter.c 27 codegen_c_json_parser.c 28 codegen_c_json_printer.c 29 # needed for building binary schema 30 ../runtime/builder.c 31 ../runtime/emitter.c 32 ../runtime/refmap.c 33 ) 34 35 if (FLATCC_REFLECTION) 36 set (SOURCES ${SOURCES} codegen_schema.c) 37 endif(FLATCC_REFLECTION) 38 39 add_library(flatcc ${SOURCES}) 40 41 if (FLATCC_INSTALL) 42 install(TARGETS flatcc DESTINATION ${lib_dir}) 43 endif()