From: grumbel Date: Thu, 19 Nov 2009 19:00:16 +0000 (+0000) Subject: Fixed some include path X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=6e62ff49e59e7384ffa32e7600bca7e277ca6621;p=supertux.git Fixed some include path git-svn-id: http://supertux.lethargik.org/svn/supertux/trunk/supertux@6057 837edb03-e0f3-0310-88ca-d4d4e8b29345 --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 249b9fff2..915c2dbf5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -123,7 +123,7 @@ LINK_DIRECTORIES(external/squirrel) include_directories (${SUPERTUX_SOURCE_DIR}/src/) include_directories (${SUPERTUX_SOURCE_DIR}/external/squirrel/include/) -include_directories (${SUPERTUX_SOURCE_DIR}/external/) +include_directories (${SUPERTUX_SOURCE_DIR}/external/tinygettext/) include_directories (${SUPERTUX_SOURCE_DIR}/external/findlocale/) include_directories (${SUPERTUX_SOURCE_DIR}/external/obstack/) @@ -131,7 +131,7 @@ include_directories (${SUPERTUX_SOURCE_DIR}/external/obstack/) FILE(GLOB SUPERTUX_SOURCES_C RELATIVE ${SUPERTUX_SOURCE_DIR} external/obstack/*.c external/findlocale/findlocale.c) -FILE(GLOB SUPERTUX_SOURCES_CXX RELATIVE ${SUPERTUX_SOURCE_DIR} src/main.cpp src/*/*.cpp src/supertux/menu/*.cpp src/video/sdl/*.cpp external/tinygettext/*.cpp) +FILE(GLOB SUPERTUX_SOURCES_CXX RELATIVE ${SUPERTUX_SOURCE_DIR} src/main.cpp src/*/*.cpp src/supertux/menu/*.cpp src/video/sdl/*.cpp external/tinygettext/tinygettext/*.cpp) IF(HAVE_OPENGL) FILE(GLOB SUPERTUX_OPENGL_SOURCES RELATIVE ${SUPERTUX_SOURCE_DIR} src/video/gl/*.cpp) @@ -302,6 +302,7 @@ ENDIF(WIN32) ## Add binreloc.c if enabled IF(ENABLE_BINRELOC) + include_directories (${SUPERTUX_SOURCE_DIR}/external/binreloc/) SET(SUPERTUX_SOURCES_C ${SUPERTUX_SOURCES_C} ${SUPERTUX_SOURCE_DIR}/external/binreloc/binreloc.c) ENDIF(ENABLE_BINRELOC) diff --git a/SConscript b/SConscript index cc34733bf..6e1a0503e 100644 --- a/SConscript +++ b/SConscript @@ -24,12 +24,9 @@ class Project: self.build_tests() def build_tinygettext(self): - env = Environment(CPPPATH=["external/tinygettext/", - "external/squirrel/include/", - ".", - "src"]) + env = Environment(CPPPATH=[".", "src"]) env.ParseConfig("sdl-config --libs --cflags") - self.libtinygettext = env.StaticLibrary("tinygettext", Glob("external/tinygettext/*.cpp")) + self.libtinygettext = env.StaticLibrary("tinygettext", Glob("external/tinygettext/tinygettext/*.cpp")) def build_binreloc(self): env = Environment(CPPPATH=["external/binreloc/", "."]) @@ -49,8 +46,9 @@ class Project: def build_supertux(self): self.env = Environment(CPPPATH=["external/squirrel/include/", "external/findlocale/", - "external/", - "external/obstack", + "external/binreloc/", + "external/obstack/", + "external/tinygettext/", "src/", "/usr/include/AL/", # yuck "."],