Commit f939e96a authored by Raphael James's avatar Raphael James

Adding CMakeList.txt files to project

parent 87fcfde4
Pipeline #483 canceled with stages
File added
cmake_minimum_required(VERSION 3.8)
project(MoteurPhysique)
set(CMAKE_CXX_STANDARD 11)
add_subdirectory(Quantum)
add_subdirectory(Test)
\ No newline at end of file
cmake_minimum_required(VERSION 3.8)
project(Quantum)
set(CMAKE_CXX_STANDARD 11)
file(GLOB SOURCE_FILES *.cpp)
add_library(Quantum ${SOURCE_FILES} ForceGenerator.cpp ForceGenerator.h Gravity.cpp Gravity.h Drag.cpp Drag.h Spring.cpp Spring.h Magnetism.cpp Magnetism.h Contact.cpp Contact.h Body.cpp Body.h AABB.cpp AABB.h Halfspace.cpp Halfspace.h)
target_include_directories(Quantum PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
\ No newline at end of file
cmake_minimum_required(VERSION 3.8)
project(Test)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
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)
include(FindPkgConfig)
find_package (PkgConfig REQUIRED)
find_package (OpenGL REQUIRED)
find_package (GLUT REQUIRED)
find_package (glfw3 REQUIRED)
find_package (GLEW REQUIRED STATIC)
file(GLOB SOURCE_FILES *.cpp)
add_executable(Test ${SOURCE_FILES})
target_link_libraries (Test LINK_PUBLIC Quantum ${OPENGL_LIBRARIES} ${GLUT_glut_LIBRAIRY} ${GLFW3_LIBRARY}
${GLEW_LIBRARY} glut Xxf86vm pthread Xrandr Xi)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment