double-hit-balls/proj.android-studio/app/CMakeLists.txt

62 lines
2.0 KiB
CMake
Raw Permalink Normal View History

2017-01-10 12:43:06 +00:00
cmake_minimum_required(VERSION 3.4.1)
2018-07-14 09:10:13 +00:00
set(BOOST_PATH ${CMAKE_CURRENT_SOURCE_DIR}/../../../boost_1_67_0)
2017-01-10 12:43:06 +00:00
set(BOOST_GIL_PATH ${CMAKE_CURRENT_SOURCE_DIR}/../../../libs/boost-gil-extension)
set(ZIP_PATH ${CMAKE_CURRENT_SOURCE_DIR}/../../../libs/julienr-libzip-android/jni)
set(LIBPNG_PATH ${CMAKE_CURRENT_SOURCE_DIR}/../../../libs/libpng_1.4.1_android)
2018-08-07 18:25:37 +00:00
set(LIBJPEG_PATH ${CMAKE_CURRENT_SOURCE_DIR}/../../../libs/jpeg-9)
2018-07-14 09:10:13 +00:00
set(EIGEN_PATH ${CMAKE_CURRENT_SOURCE_DIR}/../../../eigen)
set(SOL2_PATH ${CMAKE_CURRENT_SOURCE_DIR}/../../../sol2)
set(LUA_PATH ${CMAKE_CURRENT_SOURCE_DIR}/../../../libs/lua-5.3.4/src)
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/../../../tes-engine)
2017-01-10 12:43:06 +00:00
include_directories(${BOOST_PATH})
2018-07-14 09:10:13 +00:00
include_directories(${EIGEN_PATH})
include_directories(${SOL2_PATH})
include_directories(${LUA_PATH})
2017-01-10 12:43:06 +00:00
include_directories(${LIBPNG_PATH})
include_directories(${LIBJPEG_PATH})
include_directories(${ZIP_PATH})
include_directories(${BOOST_GIL_PATH})
2018-08-07 18:25:37 +00:00
add_definitions(-DTARGET_ANDROID)
2017-01-10 12:43:06 +00:00
2018-08-07 18:25:37 +00:00
add_library(engine SHARED IMPORTED
2017-01-10 12:43:06 +00:00
2018-08-07 18:25:37 +00:00
)
2017-01-10 12:43:06 +00:00
2018-08-07 18:25:37 +00:00
set_target_properties(engine PROPERTIES IMPORTED_LOCATION
2017-01-10 12:43:06 +00:00
2018-08-07 18:25:37 +00:00
${CMAKE_CURRENT_SOURCE_DIR}/../../../tes-engine/SalmonEngineAndroid/app/build/intermediates/cmake/debug/obj/${ANDROID_ABI}/libengine.so
2017-01-10 12:43:06 +00:00
2018-08-07 18:25:37 +00:00
)
2017-01-10 12:43:06 +00:00
2018-08-07 18:25:37 +00:00
add_library(DoubleHitBalls SHARED
2017-01-10 12:43:06 +00:00
2018-08-07 18:25:37 +00:00
${CMAKE_CURRENT_SOURCE_DIR}/../../game/android_api.cpp
${CMAKE_CURRENT_SOURCE_DIR}/../../game/main_code.cpp
${CMAKE_CURRENT_SOURCE_DIR}/../../game/creditscode.cpp
${CMAKE_CURRENT_SOURCE_DIR}/../../game/galaxy.cpp
${CMAKE_CURRENT_SOURCE_DIR}/../../game/galaxy_menu.cpp
${CMAKE_CURRENT_SOURCE_DIR}/../../game/galaxy_objects.cpp
${CMAKE_CURRENT_SOURCE_DIR}/../../game/gamecode.cpp
${CMAKE_CURRENT_SOURCE_DIR}/../../game/loadingcode.cpp
${CMAKE_CURRENT_SOURCE_DIR}/../../game/menucode.cpp
2018-08-12 14:16:12 +00:00
${CMAKE_CURRENT_SOURCE_DIR}/../../game/Sounds.cpp
2017-01-10 12:43:06 +00:00
2018-08-07 18:25:37 +00:00
)
2017-01-10 12:43:06 +00:00
2018-08-07 18:25:37 +00:00
find_library(log-lib
log
)
find_library(GLESv2-lib
GLESv2
)
target_link_libraries(DoubleHitBalls
engine
${log-lib}
${GLESv2-lib}
)