cmake cleanup

This commit is contained in:
Wolfgang Thaller 2019-11-15 01:22:07 +01:00
parent 84ddd8b7a9
commit 23276c6cd8

View File

@ -23,13 +23,16 @@ endif()
set(HAVE_NAVIGATION NO) set(HAVE_NAVIGATION NO)
if(HAVE_NAVIGATION_H) if(HAVE_NAVIGATION_H)
if(CMAKE_SYSTEM_NAME MATCHES Retro68) if(CMAKE_SYSTEM_NAME MATCHES RetroPPC)
find_library(NAVIGATION_LIBRARY NAMES libNavigation.a)
elseif(CMAKE_SYSTEM_NAME MATCHES Retro68)
find_library(NAVIGATION_LIBRARY NAMES Navigation.far) find_library(NAVIGATION_LIBRARY NAMES Navigation.far)
if(NAVIGATION_LIBRARY)
set(HAVE_NAVIGATION YES)
endif()
else() else()
set(HAVE_NAVIGATION YES) set(HAVE_NAVIGATION YES)
set(NAVIGATION_LIBRARY)
endif()
if(NAVIGATION_LIBRARY)
set(HAVE_NAVIGATION YES)
endif() endif()
endif() endif()
@ -144,11 +147,6 @@ if(HAVE_OPENTRANSPORT)
endif() endif()
endif() endif()
if(HAVE_NAVIGATION) if(NAVIGATION_LIBRARY)
if(CMAKE_SYSTEM_NAME MATCHES RetroPPC) target_link_libraries(LaunchAPPLServer ${NAVIGATION_LIBRARY})
target_link_libraries(LaunchAPPLServer -lNavigationLib)
endif()
if(CMAKE_SYSTEM_NAME MATCHES Retro68)
target_link_libraries(LaunchAPPLServer -lNavigation.far)
endif()
endif() endif()