Browse Source

Updating CMakeLists.txt file for CMake + WinAVR on Windows

- Use Makefiles from Cygwin
simple
Jacob Alexander 11 years ago
parent
commit
6429f6efa8
1 changed files with 7 additions and 1 deletions
  1. 7
    1
      CMakeLists.txt

+ 7
- 1
CMakeLists.txt View File

# #
### ###


#| Windows / Cygwin Compatibility options
set( CMAKE_LEGACY_CYGWIN_WIN32 0 )
set( CMAKE_USE_RELATIVE_PATHS 1 )


#| Set the Compilers (must be set first) #| Set the Compilers (must be set first)
include( CMakeForceCompiler ) include( CMakeForceCompiler )
cmake_force_c_compiler ( avr-gcc AVRCCompiler ) cmake_force_c_compiler ( avr-gcc AVRCCompiler )
#| .ELF Properties #| .ELF Properties
set_target_properties( ${TARGET_ELF} PROPERTIES set_target_properties( ${TARGET_ELF} PROPERTIES
LINK_FLAGS ${LINKER_FLAGS} LINK_FLAGS ${LINKER_FLAGS}
SUFFIX "" # XXX Force Windows to keep the .exe off
) )






#| TODO Windows #| TODO Windows
if( ${CMAKE_SYSTEM_NAME} MATCHES "Windows" ) if( ${CMAKE_SYSTEM_NAME} MATCHES "Windows" )
message( STATUS "Load Script is on my TODO List for Windows..." )
configure_file( LoadFile/bash load )
endif( ${CMAKE_SYSTEM_NAME} MATCHES "Windows" ) endif( ${CMAKE_SYSTEM_NAME} MATCHES "Windows" )