Advertisement
Guest User

Untitled

a guest
Jan 22nd, 2019
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  1. # the name of the target operating system
  2. set(CMAKE_SYSTEM_NAME Windows)
  3.  
  4. LIST(APPEND CMAKE_PROGRAM_PATH "c:/MinGW/bin")
  5.  
  6. # which compilers to use for C and C++
  7. set(CMAKE_C_COMPILER c:/MinGW/bin/gcc.exe)
  8. set(CMAKE_CXX_COMPILER c:/MinGW/bin/g++.exe)
  9. set(CMAKE_RC_COMPILER c:/MinGW/bin/windres.exe)
  10. set(CMAKE_RC_FLAGS -DGCC_WINDRES)
  11.  
  12. # here is the target environment located
  13. set(CMAKE_FIND_ROOT_PATH c:/MinGW)
  14.  
  15. # adjust the default behaviour of the FIND_XXX() commands:
  16. # search headers and libraries in the target environment, search
  17. # programs in the host environment
  18. set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
  19. set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
  20. set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
  21.  
  22. #set(CMAKE_FIND_LIBRARY_PREFIXES "lib" "")
  23. #set(CMAKE_FIND_LIBRARY_SUFFIXES ".dll" ".dll.a" ".lib" ".a")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement