
include_directories(${OpenCLUtilityLibrary_INCLUDE_DIRS})

set(SOURCE_FILES
    catch/catch.hpp
    CatchMain.cpp
    tests.cpp
    TestFixture.hpp
    TestFixture.cpp
)

set(OpenCLUtilityLibrary_LINK_LIBRARIES
    ${OpenCLUtilityLibrary}
)


add_library (TestOpenCLUtilityLibrary ${SOURCE_FILES})
target_link_libraries(TestOpenCLUtilityLibrary OpenCLUtilityLibrary ${OpenCLUtilityLibrary_LINK_LIBRARIES})

add_executable (Catch ${SOURCE_FILES})
target_link_libraries(Catch OpenCLUtilityLibrary ${OpenCLUtilityLibrary_LINK_LIBRARIES})



include_directories(${OpenCLUtilityLibrary_INCLUDE_DIRS})

set(SOURCE_FILES
    catch/catch.hpp
    TestFixture.hpp
    TestFixture.cpp
)

set(EXECUTABLE_SOURCE_FILES
    CatchMain.cpp
    tests.cpp
)

set(OpenCLUtilityLibrary_LINK_LIBRARIES
    ${OpenCLUtilityLibrary}
)


add_library (TestOpenCLUtilityLibrary ${SOURCE_FILES})
target_link_libraries(TestOpenCLUtilityLibrary OpenCLUtilityLibrary ${OpenCLUtilityLibrary_LINK_LIBRARIES})

add_executable (Catch ${EXECUTABLE_SOURCE_FILES} ${SOURCE_FILES})
target_link_libraries(Catch OpenCLUtilityLibrary ${OpenCLUtilityLibrary_LINK_LIBRARIES})


Split up test lib files and test executable files.
Split up test lib files and test executable files.
