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