You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
497 B
CMake
27 lines
497 B
CMake
set(SDL4OGRE_LIBRARY "sdl4ogre")
|
|
|
|
# Sources
|
|
|
|
set(SDL4OGRE_SOURCE_FILES
|
|
sdlinputwrapper.cpp
|
|
sdlcursormanager.cpp
|
|
sdlwindowhelper.cpp
|
|
)
|
|
|
|
if (APPLE)
|
|
set(SDL4OGRE_SOURCE_FILES ${SDL4OGRE_SOURCE_FILES} osx_utils.mm)
|
|
endif ()
|
|
|
|
set(SDL4OGRE_HEADER_FILES
|
|
OISCompat.h
|
|
cursormanager.hpp
|
|
events.h
|
|
)
|
|
|
|
add_library(${SDL4OGRE_LIBRARY} STATIC ${SDL4OGRE_SOURCE_FILES} ${SDL4OGRE_HEADER_FILES})
|
|
|
|
link_directories(${CMAKE_CURRENT_BINARY_DIR})
|
|
|
|
|
|
target_link_libraries(${SDL4OGRE_LIBRARY} ${SDL2_LIBRARY})
|