2013-01-10 21:21:47 +00:00
|
|
|
set(SDL4OGRE_LIBRARY "sdl4ogre")
|
|
|
|
|
|
|
|
# Sources
|
|
|
|
|
|
|
|
set(SDL4OGRE_SOURCE_FILES
|
|
|
|
sdlinputwrapper.cpp
|
2013-01-12 15:57:29 +00:00
|
|
|
sdlcursormanager.cpp
|
2013-07-29 00:32:08 +00:00
|
|
|
sdlwindowhelper.cpp
|
2013-01-10 21:21:47 +00:00
|
|
|
)
|
|
|
|
|
2013-07-31 18:30:52 +00:00
|
|
|
if (APPLE)
|
|
|
|
set(SDL4OGRE_SOURCE_FILES ${SDL4OGRE_SOURCE_FILES} osx_utils.mm)
|
|
|
|
endif ()
|
|
|
|
|
2013-01-12 15:57:29 +00:00
|
|
|
set(SDL4OGRE_HEADER_FILES
|
|
|
|
OISCompat.h
|
|
|
|
cursormanager.hpp
|
|
|
|
)
|
|
|
|
|
|
|
|
add_library(${SDL4OGRE_LIBRARY} STATIC ${SDL4OGRE_SOURCE_FILES} ${SDL4OGRE_HEADER_FILES})
|
2013-01-10 21:21:47 +00:00
|
|
|
|
|
|
|
link_directories(${CMAKE_CURRENT_BINARY_DIR})
|
|
|
|
|
|
|
|
|
|
|
|
target_link_libraries(${SDL4OGRE_LIBRARY} ${SDL2_LIBRARY})
|