Added in cmake rules for SONAME

This commit is contained in:
Jonathan Thomas
2012-08-08 17:28:15 -05:00
parent 597db2cc86
commit fb9cc41ebf
2 changed files with 8 additions and 1 deletions

View File

@@ -6,7 +6,8 @@ set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake/Modules")
################### SETUP PROJECT ###################
project(openshot)
set(PROJECT_VERSION 1.3.0)
set(PROJECT_VERSION 0.1.2)
set(SO_VERSION 0.1.0)
MESSAGE("--------------------------------------------------------------")
MESSAGE("---- Generating build files for ${PROJECT_NAME} (${PROJECT_VERSION})")
MESSAGE("--------------------------------------------------------------")

View File

@@ -51,6 +51,12 @@ add_library(openshot SHARED
KeyFrame.cpp
Player.cpp
Point.cpp)
# Set SONAME and other library properties
set_target_properties(openshot
PROPERTIES
VERSION ${PROJECT_VERSION}
SOVERSION ${SO_VERSION})
# Link all referenced libraries
target_link_libraries(openshot ${ImageMagick_LIBRARIES} ${FFMPEG_LIBRARIES} ${LIBJUCE_LIBRARIES} ${SDL_LIBRARY}) #${GTK2_LIBRARIES}