New flag and error message for class to memo key conversion
[hiphop-php.git] / hphp / hhbbc / CMakeLists.txt
blobd85e8a6b3b776f35bc01c601207828b020e4da9f
1 set(CXX_SOURCES)
2 auto_sources(files "*.cpp" "RECURSE" "${CMAKE_CURRENT_SOURCE_DIR}")
3 list(APPEND CXX_SOURCES ${files})
5 set(HEADER_SOURCES)
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)
18 if (ENABLE_COTIRE)
19   cotire(hphp_hhbbc)
20 endif()