CMake: fix whitespace errors

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10976 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
undef-in-ed 2012-03-15 12:50:36 +00:00
parent 1e0625d4ab
commit 70bb244bbb
2 changed files with 35 additions and 36 deletions

View File

@ -29,8 +29,8 @@ include_directories("${STK_SOURCE_DIR}/enet/include")
# Build the Wiiuse library
if(USE_WIIUSE)
add_subdirectory("${STK_SOURCE_DIR}/wiiuse")
include_directories("${STK_SOURCE_DIR}/wiiuse")
add_subdirectory("${STK_SOURCE_DIR}/wiiuse")
include_directories("${STK_SOURCE_DIR}/wiiuse")
endif()
# Set include paths
@ -42,9 +42,9 @@ include_directories(${IRRLICHT_INCLUDE_DIRS})
# OpenAL
if(MSVC)
find_library(OPENAL_LIBRARY OpenAL32 REQUIRED PATHS "${PROJECT_SOURCE_DIR}/dependencies/lib")
find_library(OPENAL_LIBRARY OpenAL32 REQUIRED PATHS "${PROJECT_SOURCE_DIR}/dependencies/lib")
else()
find_package(OpenAL REQUIRED)
find_package(OpenAL REQUIRED)
endif()
include_directories(${OPENAL_INCLUDE_DIR})
@ -52,14 +52,13 @@ include_directories(${OPENAL_INCLUDE_DIR})
find_package(OggVorbis REQUIRED)
include_directories(${OGGVORBIS_INCLUDE_DIRS})
# CURL
if(CYGWIN)
find_package(CURL REQUIRED)
find_package(CURL REQUIRED)
elseif(WIN32)
find_library(CURL_LIBRARIES curl libcurl_imp REQUIRED PATHS ${PROJECT_SOURCE_DIR}/dependencies/lib)
find_library(CURL_LIBRARIES curl libcurl_imp REQUIRED PATHS ${PROJECT_SOURCE_DIR}/dependencies/lib)
else()
find_package(CURL REQUIRED)
find_package(CURL REQUIRED)
endif()
include_directories(${CURL_INCLUDE_DIRS})
@ -78,24 +77,24 @@ endif()
# Set some compiler options
if(UNIX)
add_definitions(-Wall)
add_definitions(-Wall)
endif()
if(WIN32)
# By default windows.h has macros defined for min and max that screw up everything
add_definitions(-DNOMINMAX)
# And shut up about unsafe stuff
add_definitions(-D_CRT_SECURE_NO_WARNINGS)
# And shut up about unsafe stuff
add_definitions(-D_CRT_SECURE_NO_WARNINGS)
endif()
# TODO: remove this switch
add_definitions(-DHAVE_OGGVORBIS)
if(CMAKE_BUILD_TYPE MATCHES Debug)
add_definitions(-DDEBUG)
add_definitions(-DDEBUG)
else()
add_definitions(-DNDEBUG)
add_definitions(-DNDEBUG)
endif()
@ -164,18 +163,18 @@ if(USE_FRIBIDI)
endif()
if(USE_WIIUSE)
target_link_libraries(supertuxkart wiiuse bluetooth)
add_definitions(-DENABLE_WIIUSE)
target_link_libraries(supertuxkart wiiuse bluetooth)
add_definitions(-DENABLE_WIIUSE)
endif()
if(WIN32)
if(CYGWIN)
find_library(PTHREAD_LIBRARY NAMES pthread PATHS "${PROJECT_SOURCE_DIR}/dependencies/lib")
target_link_libraries(supertuxkart ${PTHREAD_LIBRARY})
else()
find_library(PTHREAD_LIBRARY NAMES pthreadVC2 PATHS "${PROJECT_SOURCE_DIR}/dependencies/lib")
target_link_libraries(supertuxkart ${PTHREAD_LIBRARY})
endif()
find_library(PTHREAD_LIBRARY NAMES pthread PATHS "${PROJECT_SOURCE_DIR}/dependencies/lib")
target_link_libraries(supertuxkart ${PTHREAD_LIBRARY})
else()
find_library(PTHREAD_LIBRARY NAMES pthreadVC2 PATHS "${PROJECT_SOURCE_DIR}/dependencies/lib")
target_link_libraries(supertuxkart ${PTHREAD_LIBRARY})
endif()
endif()
# Optional tools

View File

@ -3,18 +3,18 @@ option(FONT_TOOL "Compile font tool" OFF)
if(FONT_TOOL)
find_package(Freetype)
find_package(X11)
find_library(FONTCONFIG_LIBRARY fontconfig)
find_library(FONTCONFIG_LIBRARY fontconfig)
if(FREETYPE_FOUND)
include_directories(${FREETYPE_INCLUDE_DIRS})
add_executable(font_tool CFontTool.cpp main.cpp)
target_link_libraries(font_tool ${FREETYPE_LIBRARIES})
target_link_libraries(font_tool ${X11_Xft_LIB} Xxf86vm)
target_link_libraries(font_tool ${OPENGL_LIBRARIES})
target_link_libraries(font_tool ${IRRLICHT_LIBRARIES})
target_link_libraries(font_tool ${FONTCONFIG_LIBRARY})
include_directories(${FREETYPE_INCLUDE_DIRS})
add_executable(font_tool CFontTool.cpp main.cpp)
target_link_libraries(font_tool ${FREETYPE_LIBRARIES})
target_link_libraries(font_tool ${X11_Xft_LIB} Xxf86vm)
target_link_libraries(font_tool ${OPENGL_LIBRARIES})
target_link_libraries(font_tool ${IRRLICHT_LIBRARIES})
target_link_libraries(font_tool ${FONTCONFIG_LIBRARY})
else()
message(STATUS "Freetype was not found, the font tool won't be built (only useful for developers)")
message(STATUS "Freetype was not found, the font tool won't be built (only useful for developers)")
endif()
else()
message(STATUS "Font tool deactivated, the font tool won't be built (only useful for developers)")