diff --git a/PVRTCEncoder/test/CMakeLists.txt b/PVRTCEncoder/test/CMakeLists.txt index 3ca940d..c5c4cf0 100644 --- a/PVRTCEncoder/test/CMakeLists.txt +++ b/PVRTCEncoder/test/CMakeLists.txt @@ -61,10 +61,11 @@ SET(TESTS ) FOREACH(TEST ${TESTS}) - SET(TEST ${TEST}Test) - ADD_EXECUTABLE(${TEST} ${TEST}.cpp) - TARGET_LINK_LIBRARIES(${TEST} PVRTCEncoder) - TARGET_LINK_LIBRARIES(${TEST} gtest_main) - ADD_TEST(${TEST} ${TEST}) + SET(TEST_NAME Test${TEST}) + SET(TEST_MODULE ${TEST}Test.cpp) + ADD_EXECUTABLE(${TEST_NAME} ${TEST_MODULE}) + TARGET_LINK_LIBRARIES(${TEST_NAME} PVRTCEncoder) + TARGET_LINK_LIBRARIES(${TEST_NAME} gtest_main) + ADD_TEST(${TEST_NAME} ${TEST_NAME}) ENDFOREACH()