Advertisement
Guest User

sfml cmake file

a guest
Feb 27th, 2015
236
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.48 KB | None | 0 0
  1. cmake_minimum_required(VERSION 2.6.2)
  2.  
  3. PROJECT(p1)
  4.  
  5. # which compilers to use for C and C++
  6. SET(CMAKE_C_COMPILER i686-pc-mingw32-gcc)
  7. SET(CMAKE_CXX_COMPILER i686-pc-mingw32-g++)
  8. SET(CMAKE_RC_COMPILER i686-pc-mingw32-windres)
  9. SET(CMAKE_FIND_ROOT_PATH  /opt/mxe/usr /opt/mxe/usr/ )
  10.  
  11.  
  12. ADD_EXECUTABLE(p1 p1.cxx)
  13.  
  14. target_link_libraries(p1 sfml-main)
  15.  
  16. target_link_libraries(p1 sfml-audio-s)
  17.  
  18. target_link_libraries(p1 sfml-graphics-s)
  19.  
  20. target_link_libraries(p1 sfml-system-s)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement