-
Notifications
You must be signed in to change notification settings - Fork 6.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Remove pixel from ci baseline * don't build examples * [pixel] update to master * copy license from portfile.cmake * version * license * version * fix typo * version * use version-date * version * change version date to today * version * disable crt warnings on uwp * version
- Loading branch information
1 parent
1449bea
commit 4a34f75
Showing
6 changed files
with
64 additions
and
18 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 |
---|---|---|
@@ -0,0 +1,38 @@ | ||
diff --git a/CMakeLists.txt b/CMakeLists.txt | ||
index b910231..71f7ddf 100755 | ||
--- a/CMakeLists.txt | ||
+++ b/CMakeLists.txt | ||
@@ -34,6 +34,8 @@ else() | ||
target_link_libraries(pixel PUBLIC SDL2::SDL2) | ||
endif() | ||
|
||
+option(BUILD_EXAMPLES "Build examples" OFF) | ||
+if(BUILD_EXAMPLES) | ||
add_executable(image_swap examples/image_swap/src/image_swap.cpp) | ||
target_link_libraries(image_swap PRIVATE pixel) | ||
add_executable(randomdots examples/randomdots/src/randomdots.cpp) | ||
@@ -50,7 +52,11 @@ add_executable(simple examples/simple/src/simple.cpp) | ||
target_link_libraries(simple PRIVATE pixel) | ||
add_executable(starfield examples/starfield/src/starfield.cpp) | ||
target_link_libraries(starfield PRIVATE pixel) | ||
+endif() | ||
|
||
+if(MSVC) | ||
+ add_compile_definitions(_CRT_SECURE_NO_WARNINGS) | ||
+endif() | ||
|
||
# Install Section | ||
include(GNUInstallDirs) | ||
@@ -87,12 +93,6 @@ install( | ||
DESTINATION ${CMAKE_INSTALL_PREFIX} | ||
) | ||
|
||
-install( | ||
- FILES | ||
- ${PROJECT_SOURCE_DIR}/LICENSE | ||
- DESTINATION ${CMAKE_INSTALL_DATADIR}/pixel/copyright | ||
- ) | ||
- | ||
install( | ||
FILES | ||
${PROJECT_BINARY_DIR}/pixelConfig.cmake |
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
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
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
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
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