Install required file by fgcom in the common share/ directory
This commit is contained in:
parent
dfa1353a8a
commit
586fd45b08
1 changed files with 3 additions and 23 deletions
|
@ -1,16 +1,6 @@
|
||||||
# 20130904 - build of fgcom standalone - geoff
|
# 20130904 - build of fgcom standalone - geoff
|
||||||
if(ENABLE_IAX)
|
|
||||||
# set data installed location
|
# set data installed location
|
||||||
if (UNIX)
|
set(PKGDATAPATH "${CMAKE_INSTALL_PREFIX}/share/flightgear")
|
||||||
if (APPLE)
|
|
||||||
set(PKGDATAPATH "fgcom-data")
|
|
||||||
else ()
|
|
||||||
set(PKGDATAPATH
|
|
||||||
"${CMAKE_INSTALL_PREFIX}/share/flightgear")
|
|
||||||
endif ()
|
|
||||||
else ()
|
|
||||||
set(PKGDATAPATH "fgcom-data")
|
|
||||||
endif ()
|
|
||||||
|
|
||||||
# then to define the files themselves, in their 'installed'
|
# then to define the files themselves, in their 'installed'
|
||||||
# location, not their source location...
|
# location, not their source location...
|
||||||
|
@ -38,7 +28,7 @@ if(ENABLE_IAX)
|
||||||
endif()
|
endif()
|
||||||
target_link_libraries( ${name} iaxclient_lib )
|
target_link_libraries( ${name} iaxclient_lib )
|
||||||
# this could be just on a target basis, but for now
|
# this could be just on a target basis, but for now
|
||||||
include_directories( ${CMAKE_SOURCE_DIR}/utils/iaxclient/lib ) # for iaxclient.h
|
include_directories( ${CMAKE_SOURCE_DIR}/3rdparty/iaxclient/lib ) # for iaxclient.h
|
||||||
# Now include simgear libraries
|
# Now include simgear libraries
|
||||||
target_link_Libraries( ${name}
|
target_link_Libraries( ${name}
|
||||||
${win_LIBS}
|
${win_LIBS}
|
||||||
|
@ -52,15 +42,5 @@ if(ENABLE_IAX)
|
||||||
# then install, from their source to install destination
|
# then install, from their source to install destination
|
||||||
set( inst_FILES utils/positions.txt
|
set( inst_FILES utils/positions.txt
|
||||||
utils/special_frequencies.txt )
|
utils/special_frequencies.txt )
|
||||||
if (UNIX)
|
install(FILES ${inst_FILES} DESTINATION ${PKGDATAPATH})
|
||||||
if (APPLE)
|
|
||||||
install(FILES ${inst_FILES} DESTINATION bin/${PKGDATAPATH})
|
|
||||||
else ()
|
|
||||||
install(FILES ${inst_FILES} DESTINATION ${PKGDATAPATH})
|
|
||||||
endif ()
|
|
||||||
else ()
|
|
||||||
install(FILES ${inst_FILES} DESTINATION bin/${PKGDATAPATH})
|
|
||||||
endif ()
|
|
||||||
endif()
|
|
||||||
|
|
||||||
# eof
|
# eof
|
||||||
|
|
Loading…
Add table
Reference in a new issue