diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/CMakeLists.txt | 36 |
1 files changed, 15 insertions, 21 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 68d7b064..1a25d04b 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -586,38 +586,32 @@ SET(SRCS_MANA IF (WIN32) SET(SRCS_MANA ${SRCS_MANA} mana.rc) - SET(SRCS_EA ${SRCS_EA} mana-ea.rc) ENDIF () SET (PROGRAMS mana) ADD_EXECUTABLE(mana WIN32 ${SRCS} ${SRCS_MANA} ${SRCS_EA}) -#ADD_EXECUTABLE(mana-ea WIN32 ${SRCS} ${SRCS_EA}) -FOREACH(program ${PROGRAMS}) - TARGET_LINK_LIBRARIES(${program} ${SDL_LIBRARY} - ${SDLIMAGE_LIBRARY} - ${SDLMIXER_LIBRARY} - ${SDLNET_LIBRARY} - ${SDLTTF_LIBRARY} - ${ENET_LIBRARIES} - ${PNG_LIBRARIES} - ${PHYSFS_LIBRARY} - ${CURL_LIBRARIES} - ${LIBXML2_LIBRARIES} - ${GUICHAN_LIBRARIES} - ${OPENGL_LIBRARIES} - ${LIBINTL_LIBRARIES} - ${EXTRA_LIBRARIES}) - INSTALL(TARGETS ${program} RUNTIME DESTINATION ${PKG_BINDIR}) -ENDFOREACH(program) +TARGET_LINK_LIBRARIES(mana ${SDL_LIBRARY} + ${SDLIMAGE_LIBRARY} + ${SDLMIXER_LIBRARY} + ${SDLNET_LIBRARY} + ${SDLTTF_LIBRARY} + ${ENET_LIBRARIES} + ${PNG_LIBRARIES} + ${PHYSFS_LIBRARY} + ${CURL_LIBRARIES} + ${LIBXML2_LIBRARIES} + ${GUICHAN_LIBRARIES} + ${OPENGL_LIBRARIES} + ${LIBINTL_LIBRARIES} + ${EXTRA_LIBRARIES}) +INSTALL(TARGETS mana RUNTIME DESTINATION ${PKG_BINDIR}) IF (CMAKE_SYSTEM_NAME STREQUAL SunOS) # we expect the SMCgtxt package to be present on Solaris; # the Solaris gettext is not API-compatible to GNU gettext SET_TARGET_PROPERTIES(mana PROPERTIES LINK_FLAGS "-L/usr/local/lib") - #SET_TARGET_PROPERTIES(mana-ea PROPERTIES LINK_FLAGS "-L/usr/local/lib") ENDIF() SET_TARGET_PROPERTIES(mana PROPERTIES COMPILE_FLAGS "${FLAGS_MANA}") -#SET_TARGET_PROPERTIES(mana-ea PROPERTIES COMPILE_FLAGS "${FLAGS_EA}") |