CMake build added. Basic OpenGL 3.3 Mesh Rendering
This commit is contained in:
19
CMakeLists.txt
Normal file
19
CMakeLists.txt
Normal file
@@ -0,0 +1,19 @@
|
||||
cmake_minimum_required(VERSION 3.16 FATAL_ERROR)
|
||||
|
||||
project(XtreemNodes)
|
||||
|
||||
include_directories("include/")
|
||||
|
||||
file(GLOB_RECURSE Sources "src/**.cpp")
|
||||
|
||||
add_executable(${PROJECT_NAME} ${Sources})
|
||||
|
||||
if(UNIX AND NOT APPLE) # linux
|
||||
target_link_libraries(${PROJECT_NAME} -lGL)
|
||||
target_link_libraries(${PROJECT_NAME} -lGLEW)
|
||||
target_link_libraries(${PROJECT_NAME} -lglfw)
|
||||
#target_link_libraries(${PROJECT_NAME} -lsfml-opengl)
|
||||
endif()
|
||||
|
||||
if (WIN32) # windows
|
||||
endif(WIN32)
|
||||
Reference in New Issue
Block a user