Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- cmake_minimum_required(VERSION 2.6.2)
- PROJECT(p1)
- # which compilers to use for C and C++
- SET(CMAKE_C_COMPILER i686-pc-mingw32-gcc)
- SET(CMAKE_CXX_COMPILER i686-pc-mingw32-g++)
- SET(CMAKE_RC_COMPILER i686-pc-mingw32-windres)
- SET(CMAKE_FIND_ROOT_PATH /opt/mxe/usr /opt/mxe/usr/ )
- ADD_EXECUTABLE(p1 p1.cxx)
- target_link_libraries(p1 sfml-main)
- target_link_libraries(p1 sfml-audio-s)
- target_link_libraries(p1 sfml-graphics-s)
- target_link_libraries(p1 sfml-system-s)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement