Skip to content

Commit afd0308

Browse files
AMDmi3alexp-sssup
authored andcommitted
Install targets as targets
1 parent 7f5720a commit afd0308

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

CMakeLists.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@ SET(CMAKE_CXX_FLAGS_DEBIAN "-O2")
6060

6161
ADD_DEFINITIONS(-DDATADIR="${CMAKE_INSTALL_PREFIX}/share/lightspark")
6262

63-
6463
SET(LIBSPARK_SOURCES swf.cpp swftypes.cpp tags.cpp geometry.cpp actions.cpp frame.cpp input.cpp streams.cpp tags_stub.cpp logger.cpp vm.cpp asobjects.cpp abc.cpp abc_codesynt.cpp abc_opcodes.cpp flashdisplay.cpp flashevents.cpp textfile.cpp thread_pool.cpp flashgeom.cpp flashnet.cpp flashsystem.cpp flashutils.cpp compat.cpp abc_interpreter.cpp flashexternal.cpp flashtext.cpp flashmedia.cpp flv.cpp netutils.cpp timer.cpp decoder.cpp threading.cpp flashxml.cpp)
6564
IF(${CMAKE_SYSTEM_PROCESSOR} MATCHES "i[3-6]86")
6665
SET(LIBSPARK_SOURCES ${LIBSPARK_SOURCES} fastpaths_32.asm)
@@ -94,7 +93,7 @@ IF(COMPILE_LIGHTSPARK)
9493
IF(UNIX)
9594
INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/lightspark.frag DESTINATION ${DATADIR}/lightspark)
9695
INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/lightspark.vert DESTINATION ${DATADIR}/lightspark)
97-
INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/lightspark DESTINATION ${BINDIR})
96+
INSTALL(TARGETS lightspark DESTINATION ${BINDIR})
9897
ENDIF(UNIX)
9998
ENDIF(COMPILE_LIGHTSPARK)
10099

plugin-dir/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,5 +48,6 @@ SET_TARGET_PROPERTIES(lightsparkplugin PROPERTIES LINK_FLAGS "-Wl,--as-needed")
4848
#UNIX?
4949
IF(UNIX)
5050
INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/liblightsparkplugin.so DESTINATION ${PLUGIN_DIRECTORY})
51+
INSTALL(TARGETS lightsparkplugin DESTINATION ${PLUGIN_DIRECTORY})
5152
ENDIF(UNIX)
5253

0 commit comments

Comments
 (0)