3 # Copy positions.txt content in const char* _positionsData[];
4 file(READ utils/positions.txt POSITIONS_DATA)
5 string(REGEX REPLACE "\n" "\"%
6 \"" POSITIONS_DATA ${POSITIONS_DATA})
7 string(REGEX REPLACE "%" "," POSITIONS_DATA ${POSITIONS_DATA})
8 file(WRITE positions.hxx "const char* _positionsData[] = {
10 file(APPEND positions.hxx ${POSITIONS_DATA})
11 file(APPEND positions.hxx "\"
15 set(RESOURCE_FILE fgcom.rc)
18 set(SOURCES fgcom.cxx)
19 set(HEADERS fgcom.hxx positions.hxx)
21 add_executable(${name}
27 target_link_Libraries(${name}
30 ${SIMGEAR_CORE_LIBRARIES}
31 ${SIMGEAR_CORE_LIBRARY_DEPENDENCIES}
34 install(TARGETS ${name} RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})