Skip to content

Commit

Permalink
Updated LICENSE and CMake files.
Browse files Browse the repository at this point in the history
  • Loading branch information
AlynxZhou committed Mar 3, 2020
1 parent 3613876 commit 82a5057
Show file tree
Hide file tree
Showing 5 changed files with 290 additions and 729 deletions.
24 changes: 8 additions & 16 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,25 +1,17 @@
cmake_minimum_required(VERSION 3.0)

project("flipclock" C)

set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/CMakeModules")
set(EXECUTABLE_OUTPUT_PATH "${CMAKE_BINARY_DIR}/bin")
set(LIBRARY_OUTPUT_PATH "${CMAKE_BINARY_DIR}/lib")
set(CMAKE_C_FLAGS_DEBUG "$ENV{CXXFLAGS} -O0 -std=c11 -Wall -g -D__DEBUG__")
set(CMAKE_C_FLAGS_RELEASE "$ENV{CXXFLAGS} -O2 -std=c11")

find_package(SDL2 REQUIRED)
find_package(SDL2_ttf REQUIRED)
if(NOT MSVC)
set(
CMAKE_C_FLAGS_DEBUG
"$ENV{CXXFLAGS} -O0 -std=c11 -Wall -g -D__DEBUG__"
)
set(CMAKE_C_FLAGS_RELEASE "$ENV{CXXFLAGS} -O2 -std=c11")
endif()

file(
COPY "${CMAKE_SOURCE_DIR}/flipclock.ttf"
DESTINATION ${CMAKE_BINARY_DIR}
)
file(
COPY "${CMAKE_SOURCE_DIR}/flipclock.png"
DESTINATION ${CMAKE_BINARY_DIR}
)
file(
COPY "${CMAKE_SOURCE_DIR}/flipclock.desktop"
DESTINATION ${CMAKE_BINARY_DIR}
)
add_subdirectory("srcs")
15 changes: 15 additions & 0 deletions COPYING
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
FlipClock is distributed under the terms of the Apache-2.0 License.

FlipClock depends on SDL2 and SDL2_ttf, which are distributed under the terms of the Zlib License.

SDL2_ttf depends on Zlib, which is distributed under the terms of the Zlib License.

SDL2_ttf also depends on FreeType, which is distributed under the terms of the FreeType License.

Please visit those links if you need more info about those licenses:

https://www.apache.org/licenses/LICENSE-2.0

https://www.freetype.org/license.html

http://www.zlib.net/zlib_license.html
Loading

0 comments on commit 82a5057

Please sign in to comment.