Skip to content

Commit

Permalink
adding cmake
Browse files Browse the repository at this point in the history
  • Loading branch information
rilakkuma committed Sep 13, 2014
1 parent 18bd187 commit 8d6f0d5
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 327 deletions.
16 changes: 16 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
cmake_minimum_required(VERSION 2.6)

# Locate GTest
find_package(GTest REQUIRED)
set(LOCAL_INC_DIR "include")
include_directories(${GTEST_INCLUDE_DIRS} ${LOCAL_INC_DIR})

#set(SOURCES tests.cpp ${LOCAL_INC_DIR}/nmq.hpp)

# Link runTests with what we want to test and the GTest and pthread library
add_executable(runTests tests.cpp)
add_executable(local_lat local_lat.cpp)
add_executable(remote_lat remote_lat.cpp)
add_executable(local_thr local_thr.cpp)
add_executable(remote_thr remote_thr.cpp)
target_link_libraries(runTests ${GTEST_LIBRARIES} pthread)
327 changes: 0 additions & 327 deletions Makefile

This file was deleted.

Binary file added include/nmq.hpp.gch
Binary file not shown.
13 changes: 13 additions & 0 deletions test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#rm TEST

./local_lat LAT $1 $2 &
./remote_lat LAT $1 $2

killall local_lat
rm LAT

#./local_thr THR $1 $2 &
#./remote_thr THR $1 $2
#killall local_thr
#rm THR

0 comments on commit 8d6f0d5

Please sign in to comment.