Skip to content

Commit e772900

Browse files
Added initial code (No Linux support, will add soon)
1 parent c885a63 commit e772900

File tree

401 files changed

+96278
-11
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

401 files changed

+96278
-11
lines changed

.gitignore

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,2 @@
1-
CMakeLists.txt.user
2-
CMakeCache.txt
3-
CMakeFiles
4-
CMakeScripts
5-
Testing
6-
Makefile
7-
cmake_install.cmake
8-
install_manifest.txt
9-
compile_commands.json
10-
CTestTestfile.cmake
11-
_deps
1+
cmake*/
2+
.idea/

CMakeLists.txt

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
cmake_minimum_required(VERSION 3.15)
2+
3+
# For convenience you can put your application name here
4+
set(APP_NAME YourAppName)
5+
project(${APP_NAME} LANGUAGES CXX)
6+
7+
set(CMAKE_CXX_STANDARD 17)
8+
9+
# Change this variable to `linux` to compile for linux
10+
set(COMPILE_PLATFORM win)
11+
# Uncomment the following line to compile for x86 architecture (32bit)
12+
# set(USE_X86 TRUE)
13+
14+
if (USE_X86)
15+
SET(LINK_GL_LIBS ${CMAKE_SOURCE_DIR}/lib/${COMPILE_PLATFORM}/x86)
16+
file(COPY ${CMAKE_SOURCE_DIR}/bin/${COMPILE_PLATFORM}/x86/glew32.dll DESTINATION ${CMAKE_BINARY_DIR}/)
17+
else()
18+
SET(LINK_GL_LIBS ${CMAKE_SOURCE_DIR}/lib/${COMPILE_PLATFORM}/x64)
19+
file(COPY ${CMAKE_SOURCE_DIR}/bin/${COMPILE_PLATFORM}/x64/glew32.dll DESTINATION ${CMAKE_BINARY_DIR}/)
20+
endif ()
21+
22+
find_package(OpenGL)
23+
add_executable(${APP_NAME} main.cpp)
24+
target_link_libraries(${APP_NAME} ${OPENGL_gl_LIBRARY} ${LINK_GL_LIBS}/glfw3.lib ${LINK_GL_LIBS}/glew32.lib)

0 commit comments

Comments
 (0)