Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Moved all the test and utility programs to a "utils" directory.
  • Loading branch information
icculus committed Feb 12, 2009
1 parent 4cb3c5b commit f2e9be8
Show file tree
Hide file tree
Showing 9 changed files with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions 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.")
Expand Down Expand Up @@ -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 ...
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit f2e9be8

Please sign in to comment.