2 auto_sources(files "*.cpp" "RECURSE" "${CMAKE_CURRENT_SOURCE_DIR}")
3 list(APPEND CXX_SOURCES ${files})
6 auto_sources(files "*.h" "RECURSE" "${CMAKE_CURRENT_SOURCE_DIR}")
7 list(APPEND HEADER_SOURCES ${files})
8 HHVM_PUBLIC_HEADERS(hhbc ${files})
11 # remove anything in a test folder
12 HHVM_REMOVE_MATCHES_FROM_LISTS(CXX_SOURCES HEADER_SOURCES MATCHES "/test/")
14 add_library(hphp_hhbbc STATIC ${CXX_SOURCES} ${HEADER_SOURCES})
15 auto_source_group("hphp_hhbbc" "${CMAKE_CURRENT_SOURCE_DIR}"
16 ${CXX_SOURCES} ${HEADER_SOURCES})
17 target_link_libraries(hphp_hhbbc hphp_system)