--- a/CMakeLists.txt Thu Feb 12 17:25:49 2009 -0500
+++ b/CMakeLists.txt Thu Feb 12 17:29:24 2009 -0500
@@ -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 @@
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 ...