1
General / Re: Cant get working SFML with clion
« on: January 14, 2018, 12:40:37 pm »
ok, i have tryied to change things in the cmakeLists file. and now the error changed.
mingw32-make.exe: *** No rule to make target 'BOX2D'. Stop.
CMakeLists.txt
cmake_minimum_required(VERSION 3.7)
project(BOX2D)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -stdlib=lib++")
set(SOURCE_FILES main.cpp)
add_executable(BOX2D ${SOURCE_FILES})
set(CMAKE_MODULE_PATH "D:/c++/Librerie/SFML-2.4.2/cmake/Modules" ${CMAKE_MODULE_PATH})
set(SFML_STATIC_LIBRARIES TRUE)
set(CMAKE_FIND_FRAMEWORK NEVER)
find_package(SFML COMPONENTS graphics window system REQUIRED)
include_directories(${SFML_INCLUDE_DIR})
target_link_libraries(${main.cpp} ${SFML_Libraries})
mingw32-make.exe: *** No rule to make target 'BOX2D'. Stop.
CMakeLists.txt
cmake_minimum_required(VERSION 3.7)
project(BOX2D)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -stdlib=lib++")
set(SOURCE_FILES main.cpp)
add_executable(BOX2D ${SOURCE_FILES})
set(CMAKE_MODULE_PATH "D:/c++/Librerie/SFML-2.4.2/cmake/Modules" ${CMAKE_MODULE_PATH})
set(SFML_STATIC_LIBRARIES TRUE)
set(CMAKE_FIND_FRAMEWORK NEVER)
find_package(SFML COMPONENTS graphics window system REQUIRED)
include_directories(${SFML_INCLUDE_DIR})
target_link_libraries(${main.cpp} ${SFML_Libraries})