mirror of
https://github.com/autc04/Retro68.git
synced 2024-12-26 00:32:02 +00:00
cmake cleanup
This commit is contained in:
parent
84ddd8b7a9
commit
23276c6cd8
@ -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()
|
||||||
|
Loading…
Reference in New Issue
Block a user