# SGEngine Test Suite
cmake_minimum_required(VERSION 2.8.11)
project(sgetest)

# Library includes:
include_directories(${gtest_SOURCE_DIR}/include ${gtest_SOURCE_DIR})

# Test includes:
include_directories(../Source/Lib)

# Source Files (Any .cpp file under Test/ will be included.)
file(GLOB_RECURSE SOURCES *.cpp .)

# Builds: sgetest
add_executable(${PROJECT_NAME} ${SOURCES})
target_link_libraries(${PROJECT_NAME} gtest gtest_main pthread)
target_link_libraries(${PROJECT_NAME} SGECoreLib)

# SGEngine Test Suite
cmake_minimum_required(VERSION 2.8.11)
project(sgetest)

# Library includes:
include_directories(${gtest_SOURCE_DIR}/include ${gtest_SOURCE_DIR})

# Test includes:
include_directories(../Source/Lib)

# Source Files (Any .cpp file under Test/ will be included.)
file(GLOB_RECURSE SOURCES *.cpp .)

# Convenience test command
add_custom_target(tests
  DEPENDS ${PROJECT_NAME}
  COMMAND ${PROJECT_NAME}
  WORKING_DIRECTORY ${PROJECT_BINARY_DIR})

# Builds: sgetest
add_executable(${PROJECT_NAME} ${SOURCES})
target_link_libraries(${PROJECT_NAME} gtest gtest_main pthread)
target_link_libraries(${PROJECT_NAME} SGECoreLib)

Add convenient target to run tests
Add convenient target to run tests
