Skip to content

Commit

Permalink
Fix unit test compile error
Browse files Browse the repository at this point in the history
  • Loading branch information
votrungchi committed May 8, 2018
1 parent 32c3ecc commit a561ca3
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ cmake_minimum_required(VERSION 3.2)
set(CMAKE_INSTALL_PREFIX ${PROJECT_SOURCE_DIR})

set(DIVISIBLE_INCLUDE_DIR ${PROJECT_SOURCE_DIR}/src/divisible)
set(DIISIBLE_INCLUDE_DIR ${PROJECT_SOURCE_DIR}/src/divisible)

add_subdirectory(src)
add_subdirectory(test)
Expand Down
2 changes: 1 addition & 1 deletion test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ set(SOURCE_FILES main.cpp src/divisible_test.cpp)

add_subdirectory(lib/googletest)

include_directories(DIVISIBLE_INCLUDE_DIR)
include_directories(${DIVISIBLE_INCLUDE_DIR})
include_directories(lib/googletest/googletest/include)

add_executable(test_runner ${SOURCE_FILES})
Expand Down
2 changes: 1 addition & 1 deletion test/src/divisible_test.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//
// Created by Konstantin Gredeskoul on 5/16/17.
//
#include "divisible/divisible.h"
#include "divisible.h"
#include "gtest/gtest.h"
using namespace std;

Expand Down

0 comments on commit a561ca3

Please sign in to comment.