2012-02-04 01:19:15 -06:00
|
|
|
cmake_minimum_required(VERSION 2.6)
|
|
|
|
project(libvitaboy)
|
|
|
|
|
|
|
|
set(LIBVITABOY_SERIES 0)
|
|
|
|
set(LIBVITABOY_MAJOR 0)
|
|
|
|
set(LIBVITABOY_MINOR 1)
|
|
|
|
|
|
|
|
set(LIBVITABOY_SOURCES
|
|
|
|
anim.cpp
|
2012-02-27 02:55:53 -06:00
|
|
|
apr.cpp
|
|
|
|
bnd.cpp
|
|
|
|
col.cpp
|
|
|
|
hag.cpp
|
2012-02-04 01:19:15 -06:00
|
|
|
libvitaboy.cpp
|
2012-02-05 21:02:28 -06:00
|
|
|
mesh.cpp
|
2012-02-27 02:55:53 -06:00
|
|
|
oft.cpp
|
|
|
|
po.cpp
|
2012-02-07 15:49:09 -06:00
|
|
|
skel.cpp
|
2012-02-04 01:19:15 -06:00
|
|
|
)
|
|
|
|
if(WIN32)
|
|
|
|
set(LIBVITABOY_SOURCES ${LIBVITABOY_SOURCES} resource.rc)
|
2012-07-02 12:14:12 -05:00
|
|
|
else()
|
|
|
|
add_definitions(-Dstricmp=strcasecmp)
|
2012-02-04 01:19:15 -06:00
|
|
|
endif()
|
|
|
|
|
2012-10-17 03:21:00 -05:00
|
|
|
include_directories(${LIBGLDEMO_INCLUDE_DIR})
|
|
|
|
include_directories(${FILEHANDLER_INCLUDE_DIR})
|
2012-02-22 16:25:23 -06:00
|
|
|
|
2012-04-29 00:44:41 -05:00
|
|
|
#### Static library (uncomment to build)
|
|
|
|
#add_library(libvitaboy_static STATIC ${LIBVITABOY_SOURCES})
|
|
|
|
#set_target_properties(libvitaboy_static PROPERTIES
|
|
|
|
# OUTPUT_NAME "vitaboy"
|
|
|
|
# CLEAN_DIRECT_OUTPUT 1)
|
2012-02-04 01:19:15 -06:00
|
|
|
|
|
|
|
add_library(libvitaboy_shared SHARED ${LIBVITABOY_SOURCES})
|
|
|
|
set_target_properties(libvitaboy_shared PROPERTIES
|
2012-07-02 12:14:12 -05:00
|
|
|
COMPILE_FLAGS "-fvisibility=default"
|
2012-02-04 01:19:15 -06:00
|
|
|
OUTPUT_NAME "vitaboy${LIBVITABOY_SERIES}"
|
|
|
|
VERSION ${LIBVITABOY_SERIES}.${LIBVITABOY_MAJOR}.${LIBVITABOY_MINOR}
|
|
|
|
SOVERSION ${LIBVITABOY_SERIES}
|
|
|
|
# msvc does not prepend 'lib' - do it here to have consistent name
|
|
|
|
PREFIX "lib"
|
|
|
|
IMPORT_PREFIX "lib"
|
|
|
|
CLEAN_DIRECT_OUTPUT 1)
|
|
|
|
|
|
|
|
add_executable(vbparse vbparse.cpp)
|
2012-04-29 00:44:41 -05:00
|
|
|
target_link_libraries(vbparse libvitaboy_shared FileHandler_shared)
|
2012-02-05 21:02:28 -06:00
|
|
|
|
2012-07-02 12:14:12 -05:00
|
|
|
add_executable(Renderer ${GLDEMO_EXE} Renderer.cpp)
|
|
|
|
target_link_libraries(Renderer libvitaboy_shared ${GLDEMO_LIBS} FileHandler_shared m)
|