1
General / Re: undefined references to... On Windows
« on: April 30, 2017, 03:40:46 pm »
Yes... I really forgot about matching compiler to downloaded SFML..
Shame on me Thanks, works well.
Shame on me Thanks, works well.
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
cmake_minimum_required(VERSION 3.7)
project(untitled)
set(CMAKE_CXX_STANDARD 14)
set(SOURCE_FILES main.cpp)
set(SFML_ROOT "D:/Development/SFML-2.4.2")
add_executable(untitled ${SOURCE_FILES})
set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/cmake_modules")
find_package(SFML REQUIRED COMPONENTS audio graphics window system)
if (SFML_FOUND)
include_directories(${SFML_INCLUDE_DIR})
target_link_libraries(untitled ${SFML_LIBRARIES})
endif()