I been working on this for a few days and I'm not getting anywhere. I would like to end up with a .deb package that contains the executable binary and a few image files. I tried both automake and cmake.
I been able to build a tar.gz (which can be converted to a .deb package) from simple non-agk projects with both automake and cmake.
But I'm getting errors with agk. (im copying the lib file to the projects directory.) This what I got sofar for a CMakelist.txt for AGK:
cmake_minimum_required(VERSION 2.8.9)
project (template_linux)
# The version number.
set (template_linux_VERSION_MAJOR 1)
set (template_linux_VERSION_MINOR 0)
include_directories(
"${PROJECT_BINARY_DIR}"
"${PROJECT_BINARY_DIR}/../../common/include"
"${PROJECT_BINARY_DIR}/../../common"
"${PROJECT_BINARY_DIR}/../../common/Collision"
"${PROJECT_BINARY_DIR}/../../bullet"
"${PROJECT_BINARY_DIR}/../../bullet/BulletCollision"
"${PROJECT_BINARY_DIR}/../../bullet/BulletCollision/BroadphaseCollision"
"${PROJECT_BINARY_DIR}/../../bullet/BulletCollision/CollisionDispatch"
"${PROJECT_BINARY_DIR}/../../bullet/BulletCollision/CollisionShapes"
"${PROJECT_BINARY_DIR}/../../bullet/BulletCollision/Gimpact"
"${PROJECT_BINARY_DIR}/../../bullet/BulletCollision/NarrowPhaseCollision"
"${PROJECT_BINARY_DIR}/../../bullet/BulletDynamics/Character"
"${PROJECT_BINARY_DIR}/../../bullet/BulletDynamics/ConstraintSolver"
"${PROJECT_BINARY_DIR}/../../bullet/BulletDynamics/Dynamics"
"${PROJECT_BINARY_DIR}/../../bullet/BulletDynamics/Featherstone"
"${PROJECT_BINARY_DIR}/../../bullet/BulletDynamics/MLCPSolvers"
"${PROJECT_BINARY_DIR}/../../bullet/BulletDynamics/Vehicle"
"${PROJECT_BINARY_DIR}/../../bullet/BulletFileLoader"
"${PROJECT_BINARY_DIR}/../../bullet/BulletFileLoader/autogenerated"
"${PROJECT_BINARY_DIR}/../../bullet/BulletWorldImporter"
"${PROJECT_BINARY_DIR}/../../bullet/LinearMath"
"${PROJECT_BINARY_DIR}/../../bullet/vectormath"
"${PROJECT_BINARY_DIR}/../../bullet/vectormath/neon"
"${PROJECT_BINARY_DIR}/../../bullet/vectormath/scalar"
"${PROJECT_BINARY_DIR}/../../bullet/vectormath/sse"
"${PROJECT_BINARY_DIR}/../../platform/linux/Source"
"${PROJECT_BINARY_DIR}/../interpreter"
)
add_executable(template_linux Core.cpp libAGKLinux.a)
include (InstallRequiredSystemLibraries)
set (CPACK_RESOURCE_FILE_LICENSE
"${CMAKE_CURRENT_SOURCE_DIR}/License.txt")
set (CPACK_PACKAGE_VERSION_MAJOR "${template_linux_VERSION_MAJOR}")
set (CPACK_PACKAGE_VERSION_MINOR "${template_linux_VERSION_MINOR}")
include (CPack)
Any other ideas? Maybe another IDE has this feature automated. Im using Netbeans now.
Or maybe just zip up my executable binary in a ZIP file and add a readme with step by step instructions on how to use.