2015-01-24 22:06:08 +00:00
|
|
|
# Check that people use the good file
|
|
|
|
if(NOT TOP_CMAKE_WAS_SOURCED)
|
|
|
|
message(FATAL_ERROR "
|
|
|
|
You did not 'cmake' the good CMakeLists.txt file. Use the one in the top dir.
|
|
|
|
It is advice to delete all wrongly generated cmake stuff => CMakeFiles & CMakeCache.txt")
|
|
|
|
endif()
|
|
|
|
|
|
|
|
|
|
|
|
# plugin name
|
|
|
|
set(Output LilyPad-0.11.0)
|
|
|
|
|
2016-02-21 15:17:10 +00:00
|
|
|
set(lilypadFinalFlags "")
|
2015-01-24 22:06:08 +00:00
|
|
|
|
|
|
|
# lilypad sources
|
|
|
|
set(lilypadSources
|
|
|
|
DeviceEnumerator.cpp
|
|
|
|
InputManager.cpp
|
2015-02-04 21:27:39 +00:00
|
|
|
KeyboardQueue.cpp
|
2015-02-04 21:20:58 +00:00
|
|
|
LilyPad.cpp
|
2015-01-24 22:06:08 +00:00
|
|
|
Linux/Config.cpp
|
2015-01-26 22:45:15 +00:00
|
|
|
Linux/ConfigHelper.cpp
|
2015-02-08 14:08:26 +00:00
|
|
|
Linux/JoyEvdev.cpp
|
2015-02-04 21:20:58 +00:00
|
|
|
Linux/KeyboardMouse.cpp
|
2015-01-24 22:06:08 +00:00
|
|
|
Linux/KeyboardQueue.cpp
|
2015-02-04 21:20:58 +00:00
|
|
|
)
|
2015-01-24 22:06:08 +00:00
|
|
|
|
|
|
|
# lilypad headers
|
|
|
|
set(lilypadHeaders
|
|
|
|
)
|
|
|
|
|
|
|
|
# lilypad Linux sources
|
|
|
|
set(lilypadLinuxSources
|
|
|
|
)
|
|
|
|
|
|
|
|
# lilypad Linux headers
|
|
|
|
set(lilypadLinuxHeaders
|
|
|
|
)
|
|
|
|
|
|
|
|
if (SDL2_API)
|
|
|
|
set(lilypadFinalLibs
|
|
|
|
${SDL2_LIBRARIES}
|
|
|
|
)
|
|
|
|
else()
|
|
|
|
set(lilypadFinalLibs
|
|
|
|
${SDL_LIBRARY}
|
|
|
|
)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
set(lilypadFinalLibs
|
|
|
|
#${lilypadFinalLibs}
|
|
|
|
#${GTK2_LIBRARIES}
|
2015-02-04 21:20:58 +00:00
|
|
|
#${X11_LIBRARIES}
|
2015-01-24 22:06:08 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
set(lilypadFinalSources
|
|
|
|
${lilypadSources}
|
|
|
|
${lilypadHeaders}
|
|
|
|
${lilypadLinuxSources}
|
|
|
|
${lilypadLinuxHeaders}
|
|
|
|
)
|
|
|
|
|
|
|
|
add_pcsx2_plugin(${Output} "${lilypadFinalSources}" "${lilypadFinalLibs}" "${lilypadFinalFlags}")
|