Monday, January 11, 2016

Linux + Clion + GLFW


underconstraction
 
Lenovo G510
(uefi, wi-fi, ati)
Linux Mint 17.3 Mate
GCC 4.9.3
Clang 3.7
CMake 3.4.1
GLFW 3.1.2
GLEW 1.13
GLM 0.9.7.2
CLion 1.2.4
Assimp 3.1.1
SOIL

CMakeLists.txt:

cmake_minimum_required(VERSION 3.3)
project(untitled3)

set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")

set(CMAKE_CXX_LINK_EXECUTABLE "${CMAKE_CXX_LINK_EXECUTABLE} -ldl")

set(CMAKE_MODULE_PATH /usr/local/lib/cmake /usr/local/lib/x86_64-linux-gnu/cmake)
set(CMAKE_PREFIX_PATH /usr/local/lib/cmake/glfw)

find_package (PkgConfig REQUIRED)
find_package (OpenGL REQUIRED)
find_package (glfw3 REQUIRED)
find_package (glm REQUIRED)
find_package (GLEW REQUIRED STATIC)
find_package (assimp REQUIRED)



set(SOURCE_FILES main.cpp Camera.h Shader.h Model.h Mesh.h )
add_executable(untitled3 ${SOURCE_FILES})
target_link_libraries (untitled3 ${OPENGL_LIBRARIES} ${GLFW3_LIBRARY} 
${GLEW_LIBRARY} SOIL assimp Xxf86vm pthread Xrandr Xinerama Xi X11 Xcursor)