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:
parent
1e0625d4ab
commit
70bb244bbb
@ -29,8 +29,8 @@ include_directories("${STK_SOURCE_DIR}/enet/include")
|
|||||||
|
|
||||||
# Build the Wiiuse library
|
# Build the Wiiuse library
|
||||||
if(USE_WIIUSE)
|
if(USE_WIIUSE)
|
||||||
add_subdirectory("${STK_SOURCE_DIR}/wiiuse")
|
add_subdirectory("${STK_SOURCE_DIR}/wiiuse")
|
||||||
include_directories("${STK_SOURCE_DIR}/wiiuse")
|
include_directories("${STK_SOURCE_DIR}/wiiuse")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# Set include paths
|
# Set include paths
|
||||||
@ -42,9 +42,9 @@ include_directories(${IRRLICHT_INCLUDE_DIRS})
|
|||||||
|
|
||||||
# OpenAL
|
# OpenAL
|
||||||
if(MSVC)
|
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()
|
else()
|
||||||
find_package(OpenAL REQUIRED)
|
find_package(OpenAL REQUIRED)
|
||||||
endif()
|
endif()
|
||||||
include_directories(${OPENAL_INCLUDE_DIR})
|
include_directories(${OPENAL_INCLUDE_DIR})
|
||||||
|
|
||||||
@ -52,14 +52,13 @@ include_directories(${OPENAL_INCLUDE_DIR})
|
|||||||
find_package(OggVorbis REQUIRED)
|
find_package(OggVorbis REQUIRED)
|
||||||
include_directories(${OGGVORBIS_INCLUDE_DIRS})
|
include_directories(${OGGVORBIS_INCLUDE_DIRS})
|
||||||
|
|
||||||
|
|
||||||
# CURL
|
# CURL
|
||||||
if(CYGWIN)
|
if(CYGWIN)
|
||||||
find_package(CURL REQUIRED)
|
find_package(CURL REQUIRED)
|
||||||
elseif(WIN32)
|
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()
|
else()
|
||||||
find_package(CURL REQUIRED)
|
find_package(CURL REQUIRED)
|
||||||
endif()
|
endif()
|
||||||
include_directories(${CURL_INCLUDE_DIRS})
|
include_directories(${CURL_INCLUDE_DIRS})
|
||||||
|
|
||||||
@ -78,24 +77,24 @@ endif()
|
|||||||
|
|
||||||
# Set some compiler options
|
# Set some compiler options
|
||||||
if(UNIX)
|
if(UNIX)
|
||||||
add_definitions(-Wall)
|
add_definitions(-Wall)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(WIN32)
|
if(WIN32)
|
||||||
# By default windows.h has macros defined for min and max that screw up everything
|
# By default windows.h has macros defined for min and max that screw up everything
|
||||||
add_definitions(-DNOMINMAX)
|
add_definitions(-DNOMINMAX)
|
||||||
|
|
||||||
# And shut up about unsafe stuff
|
# And shut up about unsafe stuff
|
||||||
add_definitions(-D_CRT_SECURE_NO_WARNINGS)
|
add_definitions(-D_CRT_SECURE_NO_WARNINGS)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# TODO: remove this switch
|
# TODO: remove this switch
|
||||||
add_definitions(-DHAVE_OGGVORBIS)
|
add_definitions(-DHAVE_OGGVORBIS)
|
||||||
|
|
||||||
if(CMAKE_BUILD_TYPE MATCHES Debug)
|
if(CMAKE_BUILD_TYPE MATCHES Debug)
|
||||||
add_definitions(-DDEBUG)
|
add_definitions(-DDEBUG)
|
||||||
else()
|
else()
|
||||||
add_definitions(-DNDEBUG)
|
add_definitions(-DNDEBUG)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
||||||
@ -164,18 +163,18 @@ if(USE_FRIBIDI)
|
|||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(USE_WIIUSE)
|
if(USE_WIIUSE)
|
||||||
target_link_libraries(supertuxkart wiiuse bluetooth)
|
target_link_libraries(supertuxkart wiiuse bluetooth)
|
||||||
add_definitions(-DENABLE_WIIUSE)
|
add_definitions(-DENABLE_WIIUSE)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(WIN32)
|
if(WIN32)
|
||||||
if(CYGWIN)
|
if(CYGWIN)
|
||||||
find_library(PTHREAD_LIBRARY NAMES pthread PATHS "${PROJECT_SOURCE_DIR}/dependencies/lib")
|
find_library(PTHREAD_LIBRARY NAMES pthread PATHS "${PROJECT_SOURCE_DIR}/dependencies/lib")
|
||||||
target_link_libraries(supertuxkart ${PTHREAD_LIBRARY})
|
target_link_libraries(supertuxkart ${PTHREAD_LIBRARY})
|
||||||
else()
|
else()
|
||||||
find_library(PTHREAD_LIBRARY NAMES pthreadVC2 PATHS "${PROJECT_SOURCE_DIR}/dependencies/lib")
|
find_library(PTHREAD_LIBRARY NAMES pthreadVC2 PATHS "${PROJECT_SOURCE_DIR}/dependencies/lib")
|
||||||
target_link_libraries(supertuxkart ${PTHREAD_LIBRARY})
|
target_link_libraries(supertuxkart ${PTHREAD_LIBRARY})
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# Optional tools
|
# Optional tools
|
||||||
|
@ -3,18 +3,18 @@ option(FONT_TOOL "Compile font tool" OFF)
|
|||||||
if(FONT_TOOL)
|
if(FONT_TOOL)
|
||||||
find_package(Freetype)
|
find_package(Freetype)
|
||||||
find_package(X11)
|
find_package(X11)
|
||||||
find_library(FONTCONFIG_LIBRARY fontconfig)
|
find_library(FONTCONFIG_LIBRARY fontconfig)
|
||||||
|
|
||||||
if(FREETYPE_FOUND)
|
if(FREETYPE_FOUND)
|
||||||
include_directories(${FREETYPE_INCLUDE_DIRS})
|
include_directories(${FREETYPE_INCLUDE_DIRS})
|
||||||
add_executable(font_tool CFontTool.cpp main.cpp)
|
add_executable(font_tool CFontTool.cpp main.cpp)
|
||||||
target_link_libraries(font_tool ${FREETYPE_LIBRARIES})
|
target_link_libraries(font_tool ${FREETYPE_LIBRARIES})
|
||||||
target_link_libraries(font_tool ${X11_Xft_LIB} Xxf86vm)
|
target_link_libraries(font_tool ${X11_Xft_LIB} Xxf86vm)
|
||||||
target_link_libraries(font_tool ${OPENGL_LIBRARIES})
|
target_link_libraries(font_tool ${OPENGL_LIBRARIES})
|
||||||
target_link_libraries(font_tool ${IRRLICHT_LIBRARIES})
|
target_link_libraries(font_tool ${IRRLICHT_LIBRARIES})
|
||||||
target_link_libraries(font_tool ${FONTCONFIG_LIBRARY})
|
target_link_libraries(font_tool ${FONTCONFIG_LIBRARY})
|
||||||
else()
|
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()
|
endif()
|
||||||
else()
|
else()
|
||||||
message(STATUS "Font tool deactivated, the font tool won't be built (only useful for developers)")
|
message(STATUS "Font tool deactivated, the font tool won't be built (only useful for developers)")
|
||||||
|
Loading…
Reference in New Issue
Block a user