Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- cmake_minimum_required(VERSION 3.30)
- set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
- set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
- set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
- set(CMAKE_CXX_COMPILER clang++)
- project(ZentihEngine VERSION 1.0)
- add_executable(ZentihEngine ./src/main.cpp)
- find_package(SDL2 REQUIRED)
- include_directories(${SDL2_INCLUDE_DIRS})
- find_package(GLUT REQUIRED)
- include_directories(${GLUT_INCLUDE_DIRS})
- find_package(OpenGL REQUIRED)
- include_directories(${OpenGL_INCLUDE_DIRS})
- target_link_libraries(ZentihEngine ${PROJECT_BINARY_DIR}/include/glew-2.1.0/lib/libGLEW.so.2.1.0)
- target_link_libraries(ZentihEngine ${SDL2_LIBRARIES})
- target_link_libraries(ZentihEngine ${GLUT_LIBRARIES})
- target_link_libraries(ZentihEngine ${OpenGL_LIBRARIES})
Advertisement
Add Comment
Please, Sign In to add comment