#Add custom path to find path
set(CMAKE_PREFIX_PATH ${GTEST_ROOT_DIR})

find_package(GTest REQUIRED)

#Use our public headers like anyone else 
include_directories(${GTEST_INCLUDE_DIRS})
include_directories(../src)

set( SRCS
    MyLib_test.cpp
    FirstObject_test.cpp
    )

add_executable(MyLib_test ${SRCS})

target_link_libraries(MyLib_test ${GTEST_BOTH_LIBRARIES} myLibShared)

add_test(MyLib_test MyLib_test)

#Add custom path to find path
set(CMAKE_PREFIX_PATH ${GTEST_ROOT_DIR})

find_package(GTest REQUIRED)
find_package(Threads REQUIRED)

#Use our public headers like anyone else 
include_directories(${GTEST_INCLUDE_DIRS})
include_directories(../src)

set( SRCS
    MyLib_test.cpp
    FirstObject_test.cpp
    )

add_executable(MyLib_test ${SRCS})

target_link_libraries(MyLib_test ${GTEST_BOTH_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT} myLibShared)

add_test(MyLib_test MyLib_test)

Add thread support to match default gtest compilation
Add thread support to match default gtest compilation
