all repos — mgba @ d5bd5213134c69a32b10aa08cd1522189af53743

mGBA Game Boy Advance Emulator

Break out shared library
Jeffrey Pfau jeffrey@endrift.com
Tue, 28 Jan 2014 01:40:32 -0800
commit

d5bd5213134c69a32b10aa08cd1522189af53743

parent

8e5b806cdd2fed1695f069fc8bc7e0eb0b3703ae

1 files changed, 5 insertions(+), 1 deletions(-)

jump to
M CMakeLists.txtCMakeLists.txt

@@ -61,5 +61,9 @@ set(EXTRA_LIB ${EXTRA_LIB} rt)

endif() endif() -add_executable(${BINARY_NAME} WIN32 ${ARM_SRC} ${GBA_SRC} ${DEBUGGER_SRC} ${RENDERER_SRC} ${UTIL_SRC} ${PLATFORM_SRC} ${OS_SRC} ${MAIN_SRC}) +add_library(${BINARY_NAME} SHARED ${ARM_SRC} ${GBA_SRC} ${DEBUGGER_SRC} ${RENDERER_SRC} ${UTIL_SRC} ${PLATFORM_SRC} ${OS_SRC}) target_link_libraries(${BINARY_NAME} m ${DEBUGGER_LIB} ${PLATFORM_LIBRARY} ${OPENGL_LIBRARY} ${EXTRA_LIB}) + +add_executable(${BINARY_NAME}-bin WIN32 ${MAIN_SRC}) +target_link_libraries(${BINARY_NAME}-bin ${BINARY_NAME}) +set_target_properties(${BINARY_NAME}-bin PROPERTIES OUTPUT_NAME ${BINARY_NAME})