config_Linux 392 B

1234567891011121314151617
  1. PLATFORM="x86-linux-static"
  2. CURSES_LIBRARY="/usr/lib/libcurses.a"
  3. FORM_LIBRARY="/usr/lib/libform.a"
  4. CC="gcc"
  5. CXX="c++"
  6. # Write entries into the cache file before building cmake.
  7. write_cache()
  8. {
  9. cat > CMakeCache.txt <<EOF
  10. BUILD_TESTING:BOOL=ON
  11. CMAKE_EXE_LINKER_FLAGS:STRING=-static
  12. CMAKE_SKIP_RPATH:BOOL=1
  13. CURSES_LIBRARY:FILEPATH=${CURSES_LIBRARY}
  14. FORM_LIBRARY:FILEPATH=${FORM_LIBRARY}
  15. EOF
  16. }