b0b272e4d2
- positions.txt and special.txt are integrated in the binary - Reduce CPU load - New mode: OBS for listening a frequency - Source code ready to be used with another library - Support for COM1 and COM2 - Fix bug where frequencies conflict avoid switching between similar frequency in range - Better logging information and debug information - Range depends on altitude
34 lines
859 B
CMake
34 lines
859 B
CMake
set(name fgcom)
|
|
|
|
# Copy positions.txt content in const char* _positionsData[];
|
|
file(READ utils/positions.txt POSITIONS_DATA)
|
|
string(REGEX REPLACE "\n" "\"%
|
|
\"" POSITIONS_DATA ${POSITIONS_DATA})
|
|
string(REGEX REPLACE "%" "," POSITIONS_DATA ${POSITIONS_DATA})
|
|
file(WRITE positions.hxx "const char* _positionsData[] = {
|
|
\"")
|
|
file(APPEND positions.hxx ${POSITIONS_DATA})
|
|
file(APPEND positions.hxx "\"
|
|
};")
|
|
|
|
if(MSVC)
|
|
set(RESOURCE_FILE fgcom.rc)
|
|
endif(MSVC)
|
|
|
|
set(SOURCES fgcom.cxx)
|
|
set(HEADERS fgcom.hxx positions.hxx)
|
|
|
|
add_executable(${name}
|
|
${SOURCES}
|
|
${HEADERS}
|
|
${RESOURCE_FILE}
|
|
)
|
|
|
|
target_link_Libraries(${name}
|
|
iaxclient_lib
|
|
${OPENAL_LIBRARY}
|
|
${SIMGEAR_CORE_LIBRARIES}
|
|
${SIMGEAR_CORE_LIBRARY_DEPENDENCIES}
|
|
)
|
|
|
|
install(TARGETS ${name} RUNTIME DESTINATION bin)
|