You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
512 B

8 years ago
cmake_minimum_required(VERSION 3.6)
project(Lab1)
set(SFML_COMPONENTS graphics window system network audio)
set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR})
find_package(SFML 2.1 COMPONENTS ${SFML_COMPONENTS} REQUIRED)
message(STATUS "SFML found: ${SFML_FOUND}")
include_directories(${SFML_INCLUDE_DIR})
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
set(SOURCE_FILES main.cpp mtrand.cpp mtrand.h)
add_executable(Lab1 ${SOURCE_FILES})
target_link_libraries (Lab1 ${SFML_LIBRARIES} ${SFML_DEPENDENCIES})