cmake_minimum_required (VERSION 2.8)

set(Boost_USE_STATIC_LIBS ON)
set(Boost_USE_MULTITHREADED ON) 
set(Boost_USE_STATIC_RUNTIME ON)

include(../cmake/BoostTestHelpers.cmake)

include_directories("${CMAKE_SOURCE_DIR}/Tostitos/machine")

find_package(Boost COMPONENTS unit_test_framework)

add_boost_test(interpreter_tests.cpp machine)
add_boost_test(utils_tests.cpp machine)

cmake_minimum_required (VERSION 2.8)

set(Boost_USE_STATIC_LIBS ON)
set(Boost_USE_MULTITHREADED ON) 
set(Boost_USE_STATIC_RUNTIME ON)

find_package(Boost COMPONENTS unit_test_framework)
include_directories("${CMAKE_SOURCE_DIR}/Tostitos/machine")

if(WIN32)
	set( SOURCES 
			main.cpp 
			interpreter_tests.cpp 
			interpreter_tests.h 
			utils_tests.cpp
	)

	set(EXECUTABLE_OUTPUT_PATH "${CMAKE_BINARY_DIR}/bin")

	# Boost
    include_directories("${Boost_INCLUDE_DIR}")
    link_directories("${Boost_LIBRARY_DIRS}")
	
    # Machine 
    include_directories("${CMAKE_SOURCE_DIR}/Tostitos/machine")
    link_directories("${CMAKE_BINARY_DIR}/lib")
    
    add_executable(MachineTests ${SOURCES}) 
    target_link_libraries(MachineTests ${Boost_LIBRARIES} machine)
else()
	include(../cmake/BoostTestHelpers.cmake)

	add_boost_test(interpreter_tests.cpp machine)
	add_boost_test(utils_tests.cpp machine)
endif()

Build System: - On Windows, we won't use the new cmake function for adding tests because it doesn't produce valid VS projects
Build System:
- On Windows, we won't use the new cmake function for adding tests because it doesn't produce valid VS projects
