- Added CREATE_EXECUTABLE macro

- Build the benchmarks in CMake
This commit is contained in:
Sears Russell 2008-09-30 15:28:32 +00:00
parent b91050755a
commit 313a55f401
2 changed files with 19 additions and 6 deletions

View file

@ -37,7 +37,10 @@ MACRO(CREATE_CHECK_OPT NAME OPT)
ADD_TEST(${NAME} ${NAME} ${OPT})
ENDMACRO(CREATE_CHECK_OPT)
MACRO(CREATE_EXECUTABLE NAME)
ADD_EXECUTABLE(${NAME} ${NAME}.c)
TARGET_LINK_LIBRARIES(${NAME} ${COMMON_LIBRARIES})
ENDMACRO(CREATE_EXECUTABLE)
# Output the config.h file
#CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/config.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config.h)

View file

@ -1,5 +1,6 @@
ADD_EXECUTABLE(rose rose.cpp)
TARGET_LINK_LIBRARIES(rose ${COMMON_LIBRARIES})
ADD_EXECUTABLE(roseTable roseTable.cpp)
TARGET_LINK_LIBRARIES(roseTable ${COMMON_LIBRARIES})
@ -9,12 +10,21 @@ TARGET_LINK_LIBRARIES(roseTableTpcCH-workload1 ${COMMON_LIBRARIES})
ADD_EXECUTABLE(roseTableTpcCH-workload2 roseTableTpcCH-workload2.cpp)
TARGET_LINK_LIBRARIES(roseTableTpcCH-workload2 ${COMMON_LIBRARIES})
ADD_EXECUTABLE(sequentialThroughput sequentialThroughput.c)
TARGET_LINK_LIBRARIES(sequentialThroughput ${COMMON_LIBRARIES})
CREATE_EXECUTABLE(lhtableThreaded)
CREATE_EXECUTABLE(naiveHash)
CREATE_EXECUTABLE(naiveMultiThreaded)
CREATE_EXECUTABLE(rawSet)
CREATE_EXECUTABLE(arrayListSet)
CREATE_EXECUTABLE(linearHashNTA)
CREATE_EXECUTABLE(linkedListNTA)
CREATE_EXECUTABLE(pageOrientedListNTA)
CREATE_EXECUTABLE(linearHashNTAThreaded)
CREATE_EXECUTABLE(linearHashNTAMultiReader)
CREATE_EXECUTABLE(linearHashNTAWriteRequests)
CREATE_EXECUTABLE(transitiveClosure)
CREATE_EXECUTABLE(zeroCopy)
CREATE_EXECUTABLE(sequentialThroughput)
#ADD_LIBRARY(referential algebra.c dml.c)
#SET(COMMON_LIBRARIES referential ${COMMON_LIBRARIES})
IF(CHECK_LIBRARY)
ADD_TEST(rose rose)
# CREATE_CHECK(${CMAKE_CURRENT_SOURCE_DIR}/rose.sh)
ENDIF(CHECK_LIBRARY)