Rip the PropUB option out of the runtime
[hiphop-php.git] / hphp / test / CMakeLists.txt
blob0cfdf3d3b2bcb68cefbd13092ef93282ccffe072
1 set(CXX_SOURCES)
2 add_definitions("-DHHVM_PATH=\"${CMAKE_CURRENT_SOURCE_DIR}/../hhvm/hhvm\"")
4 set(RECURSIVE_SOURCE_SUBDIRS ext)
5 foreach (dir ${RECURSIVE_SOURCE_SUBDIRS})
6   auto_sources(files "*.cpp" "RECURSE" "${CMAKE_CURRENT_SOURCE_DIR}/${dir}")
7   list(APPEND CXX_SOURCES ${files})
8 endforeach(dir ${RECURSIVE_SOURCE_SUBDIRS})
10 list(APPEND CXX_SOURCES ${files})
11 list(APPEND CXX_SOURCES "${CMAKE_CURRENT_SOURCE_DIR}/../hhvm/process-init.cpp")
13 if(NOT HAVE_CUSTOM_LIBEVENT)
14   list(REMOVE_ITEM CXX_SOURCES
15        "${CMAKE_CURRENT_SOURCE_DIR}/ext/test_ext_curl.cpp")
16 endif()
18 add_executable(test ${CXX_SOURCES})
19 target_link_libraries(test ${HHVM_LINK_LIBRARIES})
20 link_object_libraries(test ${HHVM_WHOLE_ARCHIVE_LIBRARIES})
21 embed_all_systemlibs(test "${CMAKE_CURRENT_BINARY_DIR}/.." "${CMAKE_CURRENT_BINARY_DIR}/test")
22 add_dependencies(test systemlib)
23 if (ENABLE_COTIRE)
24   cotire(test)
25 endif()