From f2e9be88ab95d36a8aef4126fd78e299af6e6fb2 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Thu, 12 Feb 2009 17:29:24 -0500 Subject: [PATCH] Moved all the test and utility programs to a "utils" directory. --- CMakeLists.txt | 18 ++++++++++-------- assemble.c => utils/assemble.c | 0 .../availableprofiles.c | 0 bestprofile.c => utils/bestprofile.c | 0 finderrors.c => utils/finderrors.c | 0 glcaps.c => utils/glcaps.c | 0 preprocess.c => utils/preprocess.c | 0 testoutput.c => utils/testoutput.c | 0 testparse.c => utils/testparse.c | 0 9 files changed, 10 insertions(+), 8 deletions(-) rename assemble.c => utils/assemble.c (100%) rename availableprofiles.c => utils/availableprofiles.c (100%) rename bestprofile.c => utils/bestprofile.c (100%) rename finderrors.c => utils/finderrors.c (100%) rename glcaps.c => utils/glcaps.c (100%) rename preprocess.c => utils/preprocess.c (100%) rename testoutput.c => utils/testoutput.c (100%) rename testparse.c => utils/testparse.c (100%) diff --git a/CMakeLists.txt b/CMakeLists.txt index 8e03acb1..7cbc6da2 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,6 +1,8 @@ CMAKE_MINIMUM_REQUIRED(VERSION 2.4) PROJECT(MojoShader) +INCLUDE_DIRECTORIES(.) + FIND_PROGRAM(HG hg DOC "Path to hg command line app: http://www.selenic.com/mercurial/") IF(NOT HG) MESSAGE(STATUS "Mercurial (hg) not found. You can go on, but version info will be wrong.") @@ -73,23 +75,23 @@ FIND_PACKAGE(SDL) IF(SDL_FOUND) INCLUDE_DIRECTORIES(${SDL_INCLUDE_DIR}) ADD_DEFINITIONS(-DFINDERRORS_COMPILE_SHADERS=1) - ADD_EXECUTABLE(glcaps glcaps.c) + ADD_EXECUTABLE(glcaps utils/glcaps.c) TARGET_LINK_LIBRARIES(glcaps ${SDL_LIBRARY}) - ADD_EXECUTABLE(bestprofile bestprofile.c) + ADD_EXECUTABLE(bestprofile utils/bestprofile.c) TARGET_LINK_LIBRARIES(bestprofile mojoshader ${SDL_LIBRARY}) - ADD_EXECUTABLE(availableprofiles availableprofiles.c) + ADD_EXECUTABLE(availableprofiles utils/availableprofiles.c) TARGET_LINK_LIBRARIES(availableprofiles mojoshader ${SDL_LIBRARY}) ENDIF(SDL_FOUND) -ADD_EXECUTABLE(testparse testparse.c) +ADD_EXECUTABLE(testparse utils/testparse.c) TARGET_LINK_LIBRARIES(testparse mojoshader) -ADD_EXECUTABLE(testoutput testoutput.c) +ADD_EXECUTABLE(testoutput utils/testoutput.c) TARGET_LINK_LIBRARIES(testoutput mojoshader) -ADD_EXECUTABLE(finderrors finderrors.c) +ADD_EXECUTABLE(finderrors utils/finderrors.c) TARGET_LINK_LIBRARIES(finderrors mojoshader ${SDL_LIBRARY}) -ADD_EXECUTABLE(assemble assemble.c) +ADD_EXECUTABLE(assemble utils/assemble.c) TARGET_LINK_LIBRARIES(assemble mojoshader) -ADD_EXECUTABLE(preprocess preprocess.c) +ADD_EXECUTABLE(preprocess utils/preprocess.c) TARGET_LINK_LIBRARIES(preprocess mojoshader) # End of CMakeLists.txt ... diff --git a/assemble.c b/utils/assemble.c similarity index 100% rename from assemble.c rename to utils/assemble.c diff --git a/availableprofiles.c b/utils/availableprofiles.c similarity index 100% rename from availableprofiles.c rename to utils/availableprofiles.c diff --git a/bestprofile.c b/utils/bestprofile.c similarity index 100% rename from bestprofile.c rename to utils/bestprofile.c diff --git a/finderrors.c b/utils/finderrors.c similarity index 100% rename from finderrors.c rename to utils/finderrors.c diff --git a/glcaps.c b/utils/glcaps.c similarity index 100% rename from glcaps.c rename to utils/glcaps.c diff --git a/preprocess.c b/utils/preprocess.c similarity index 100% rename from preprocess.c rename to utils/preprocess.c diff --git a/testoutput.c b/utils/testoutput.c similarity index 100% rename from testoutput.c rename to utils/testoutput.c diff --git a/testparse.c b/utils/testparse.c similarity index 100% rename from testparse.c rename to utils/testparse.c