Make NostalgiaStudio library a shared library

This commit is contained in:
Gary Talent 2017-06-30 18:00:10 -05:00
parent f200472c4f
commit 54f929a883
4 changed files with 10 additions and 11 deletions

View File

@ -22,6 +22,9 @@ add_definitions(
-Wsign-compare -Wsign-compare
) )
set(CMAKE_INSTALL_RPATH "$ORIGIN/../lib/nostalgia")
set(CMAKE_BUILD_WITH_INSTALL_RPATH TRUE)
if (CMAKE_BUILD_TYPE STREQUAL "Release") if (CMAKE_BUILD_TYPE STREQUAL "Release")
add_definitions( add_definitions(
-Werror -Werror

View File

@ -2,8 +2,7 @@ cmake_minimum_required(VERSION 2.8.11)
if(WOMBAT_BUILD_TYPE STREQUAL "Native") if(WOMBAT_BUILD_TYPE STREQUAL "Native")
add_library( add_library(
NostalgiaCore-Studio NostalgiaCore-Studio SHARED
SHARED
import_tilesheet_wizard.cpp import_tilesheet_wizard.cpp
plugin.cpp plugin.cpp
) )

View File

@ -6,7 +6,7 @@ set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(CMAKE_AUTOMOC ON) set(CMAKE_AUTOMOC ON)
add_library( add_library(
NostalgiaStudio NostalgiaStudio SHARED
json_read.cpp json_read.cpp
json_write.cpp json_write.cpp
wizard.cpp wizard.cpp
@ -15,12 +15,8 @@ add_library(
project.cpp project.cpp
) )
set_property( install(TARGETS NostalgiaStudio
TARGET LIBRARY DESTINATION lib/nostalgia)
NostalgiaStudio
PROPERTY
POSITION_INDEPENDENT_CODE ON
)
target_link_libraries( target_link_libraries(
NostalgiaStudio NostalgiaStudio

View File

@ -5,6 +5,7 @@ set(CMAKE_AUTOMOC ON)
add_library( add_library(
NostalgiaTool NostalgiaTool
SHARED
tilesetimport.cpp tilesetimport.cpp
) )
@ -28,6 +29,6 @@ install(
install( install(
TARGETS TARGETS
NostalgiaTool NostalgiaTool
LIBRARY DESTINATION lib/ox LIBRARY DESTINATION lib/nostalgia
ARCHIVE DESTINATION lib/ox ARCHIVE DESTINATION lib/nostalgia
) )