if(CMAKE_CROSSCOMPILING)
ADD_CUSTOM_COMMAND( OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/lugaru_resource.obj
COMMAND i686-pc-mingw32-windres
- -I${CMAKE_CURRENT_SOURCE_DIR}/res
+ -I${SRCDIR}/res
-o ${CMAKE_CURRENT_BINARY_DIR}/lugaru_resource.obj
- -i${CMAKE_CURRENT_SOURCE_DIR}/res/lugaru.rc
- DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/res/lugaru.rc
+ -i${SRCDIR}/res/Lugaru.rc
+ DEPENDS ${SRCDIR}/res/Lugaru.rc
)
endif(CMAKE_CROSSCOMPILING)
if(NOT CMAKE_CROSSCOMPILING)
ADD_CUSTOM_COMMAND( OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/lugaru_resource.obj
COMMAND windres
- -I${CMAKE_CURRENT_SOURCE_DIR}/res
+ -I${SRCDIR}/res
-o ${CMAKE_CURRENT_BINARY_DIR}/lugaru_resource.obj
- -i${CMAKE_CURRENT_SOURCE_DIR}/res/lugaru.rc
- DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/res/lugaru.rc
+ -i${SRCDIR}/res/Lugaru.rc
+ DEPENDS ${SRCDIR}/res/Lugaru.rc
)
endif(NOT CMAKE_CROSSCOMPILING)
if (WINDOWS)
set(LUGARU_HAS_INTERNAL_SDL True)
- set(SDL_LIBRARY
- ${SDLDIR}/lib/win32/SDL.lib
- ${SDLDIR}/lib/win32/SDLmain.lib
- )
+ if (MSVC)
+ set(SDL_LIBRARY
+ ${SDLDIR}/lib/win32/msvc/SDL.lib
+ ${SDLDIR}/lib/win32/msvc/SDLmain.lib
+ )
+ endif (MSVC)
+ if (MINGW)
+ set(SDL_LIBRARY
+ ${SDLDIR}/lib/win32/mingw/libSDL.dll.a
+ ${SDLDIR}/lib/win32/mingw/libSDLmain.a
+ )
+ endif (MINGW)
endif (WINDOWS)
if (NOT LUGARU_HAS_INTERNAL_SDL)
# Install target
if(WIN32)
install(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/Source/lugaru.exe DESTINATION ${CMAKE_INSTALL_PREFIX})
+ if(MSVC)
+ install(FILES ${SDLDIR}/lib/win32/msvc/SDL.dll DESTINATION ${CMAKE_INSTALL_PREFIX})
+ endif(MSVC)
+ if(MINGW)
+ install(FILES ${SDLDIR}/lib/win32/mingw/SDL.dll DESTINATION ${CMAKE_INSTALL_PREFIX})
+ endif(MINGW)
else(WIN32)
install(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/Source/lugaru DESTINATION ${CMAKE_INSTALL_PREFIX})
endif(WIN32)
--- /dev/null
+# libSDL.la - a libtool library file
+# Generated by ltmain.sh (GNU libtool) 2.2.6
+#
+# Please DO NOT delete this file!
+# It is necessary for linking the library.
+
+# The name that we can dlopen(3).
+dlname='../bin/SDL.dll'
+
+# Names of this library.
+library_names='libSDL.dll.a'
+
+# The name of the static archive.
+old_library='libSDL.a'
+
+# Linker flags that can not go in dependency_libs.
+inherited_linker_flags=''
+
+# Libraries that this one depends upon.
+dependency_libs=' -luser32 -lgdi32 -lwinmm -ldxguid'
+
+# Names of additional weak libraries provided by this library
+weak_library_names=''
+
+# Version information for libSDL.
+current=11
+age=11
+revision=3
+
+# Is this an already installed library?
+installed=yes
+
+# Should we warn about portability when linking against -modules?
+shouldnotlink=no
+
+# Files to dlopen/dlpreopen
+dlopen=''
+dlpreopen=''
+
+# Directory that this library needs to be installed in:
+libdir='/usr/local/lib'