-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
290 additions
and
729 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Oops, something went wrong.