diff options
author | Tycho <work.tycho+git@gmail.com> | 2015-01-09 15:07:59 +0100 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2015-01-22 20:12:42 +0100 |
commit | a9b8a530b1e082d2ab108947ef28e0a58c8fd838 (patch) | |
tree | 583a1b13642b8f0bd39afe9d313effa8435446a9 /tests/Network/CMakeLists.txt | |
parent | cNetwork: Linux compilation fix. (diff) | |
download | cuberite-a9b8a530b1e082d2ab108947ef28e0a58c8fd838.tar cuberite-a9b8a530b1e082d2ab108947ef28e0a58c8fd838.tar.gz cuberite-a9b8a530b1e082d2ab108947ef28e0a58c8fd838.tar.bz2 cuberite-a9b8a530b1e082d2ab108947ef28e0a58c8fd838.tar.lz cuberite-a9b8a530b1e082d2ab108947ef28e0a58c8fd838.tar.xz cuberite-a9b8a530b1e082d2ab108947ef28e0a58c8fd838.tar.zst cuberite-a9b8a530b1e082d2ab108947ef28e0a58c8fd838.zip |
Diffstat (limited to 'tests/Network/CMakeLists.txt')
-rw-r--r-- | tests/Network/CMakeLists.txt | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/Network/CMakeLists.txt b/tests/Network/CMakeLists.txt new file mode 100644 index 000000000..8aae84590 --- /dev/null +++ b/tests/Network/CMakeLists.txt @@ -0,0 +1,14 @@ +cmake_minimum_required (VERSION 2.6) + +enable_testing() + +include_directories(${CMAKE_SOURCE_DIR}/src/) +include_directories(${CMAKE_SOURCE_DIR}/lib/libevent/include) + +add_definitions(-DTEST_GLOBALS=1) +add_library(Network ${CMAKE_SOURCE_DIR}/src/OSSupport/Network.cpp ${CMAKE_SOURCE_DIR}/src/OSSupport/Event.cpp ${CMAKE_SOURCE_DIR}/src/StringUtils.cpp) +target_link_libraries(Network event_core event_extra) + +add_executable(Google-exe Google.cpp) +target_link_libraries(Google-exe Network) +add_test(NAME Google-test COMMAND Google-exe) |