Introduce runif check for locale, use it to convert skipifs.
[hiphop-php.git] / hphp / parser / CMakeLists.txt
blobbaa32bb0e29f96f768b6c2a5356cb22a4693f50a
1 set(CXX_SOURCES)
2 auto_sources(files "*.cpp" "${CMAKE_CURRENT_SOURCE_DIR}")
3 list(APPEND CXX_SOURCES ${files})
5 set(HEADER_SOURCES)
6 auto_sources(files "*.h" "${CMAKE_CURRENT_SOURCE_DIR}")
7 list(APPEND HEADER_SOURCES ${files})
8 HHVM_PUBLIC_HEADERS(parser ${files})
10 set(GROUP_SOURCES)
11 list(APPEND GROUP_SOURCES "${CMAKE_CURRENT_SOURCE_DIR}" ${CXX_SOURCES}
12   ${HEADER_SOURCES})
14 add_library(hphp_parser STATIC ${CXX_SOURCES} ${HEADER_SOURCES})
15 add_dependencies(hphp_parser hphp_util)
16 auto_source_group("hphp_parser" ${GROUP_SOURCES})
17 set_target_properties(hphp_parser PROPERTIES COMPILE_FLAGS "")
19 if (ENABLE_COTIRE)
20   cotire(hphp_parser)
21 endif()