This repository has been archived by the owner on Nov 3, 2023. It is now read-only.
/
CMakeLists.txt
61 lines (49 loc) · 2.78 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
#/////////////////////////////////////////////////////////
#///////// /////////
#///////// ****** ***************** /////////
#///////// **** *************** /////////
#///////// *** *** ** /////////
#///////// *** *** /////////
#///////// *** *** ** /////////
#///////// *** ********** /////////
#///////// *** ********** /////////
#///////// *** *** ** /////////
#///////// *** *** /////////
#///////// *** ** *** /////////
#///////// ************** ***** /////////
#///////// **************** ******* /////////
#///////// /////////
#/////////////////////////////////////////////////////////
#/////// Created by: https://github.com/shaafiee ///////
#/////// Copyright 2020, lottiefiles.com ///////
#/////////////////////////////////////////////////////////
cmake_minimum_required(VERSION 3.10)
project(glottie VERSION 0.1)
set(CMAKE_SYSTEM_NAME WindowsStore)
set(CMAKE_SYSTEM_VERSION 10.0)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED True)
set(CMAKE_CXX_FLAGS "-g")
set(PROJECTNAME_ARCHITECTURE "x86")
OPTION (BUILD_SHARED_LIBS "Build Shared Libraries" YES)
SET (LIB_TYPE STATIC)
IF (BUILD_SHARED_LIBS)
SET (LIB_TYPE SHARED)
ENDIF (BUILD_SHARED_LIBS)
add_compile_definitions(FOR_WINDOWS)
#################################################################################################
# Edit the following line to point to alternative include paths
include_directories("${PROJECT_SOURCE_DIR}/winclude/sdl" "${PROJECT_SOURCE_DIR}/winclude")
#################################################################################################
# Edit the following line to point to SDL2 and ANGLE libraries
# Alternatively, remove the line if they are available in a global library path
link_directories("${PROJECT_SOURCE_DIR}/winlib/angle" "${PROJECT_SOURCE_DIR}/winlib/sdl/lib/x86")
#################################################################################################
#link_directories("${PROJECT_SOURCE_DIR}/winlib/glew" "${PROJECT_SOURCE_DIR}/winlib/glfw" "${PROJECT_SOURCE_DIR}/winlib/sdl/lib/x86" "${PROJECT_SOURCE_DIR}/winlib/freeglut")
add_library(libglottie SHARED main.cpp)
add_executable(glottie main.cpp)
target_link_libraries(libglottie libEGL libGLESv2 SDL2main SDL2)
target_link_libraries(glottie libEGL libGLESv2 SDL2main SDL2)
#target_link_libraries(libglottie glew32 glfw3 opengl32 freeglut SDL2main SDL2)
#target_link_libraries(glottie glew32 glfw3 opengl32 freeglut SDL2main SDL2)
configure_file(configure.h.in configure.h)