-
Notifications
You must be signed in to change notification settings - Fork 1
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
6 changed files
with
47 additions
and
47 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
This file was deleted.
Oops, something went wrong.
File renamed without changes.
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,32 @@ | ||
cmake_minimum_required(VERSION 3.10) | ||
project(SpeedDemon VERSION 1.0 LANGUAGES CXX) | ||
|
||
# Define library output type | ||
add_library(SpeedDemon SHARED | ||
src/SpeedDemon.cpp | ||
) | ||
|
||
# Add include directories | ||
target_include_directories(SpeedDemon PUBLIC include) | ||
|
||
# Cross-platform dynamic library properties | ||
if(WIN32) | ||
set_target_properties(SpeedDemon PROPERTIES | ||
PREFIX "" | ||
SUFFIX ".dll") | ||
elseif(APPLE) | ||
set_target_properties(SpeedDemon PROPERTIES | ||
PREFIX "" # lib? | ||
SUFFIX ".dylib") | ||
else() | ||
set_target_properties(SpeedDemon PROPERTIES | ||
PREFIX "" # lib? | ||
SUFFIX ".so") | ||
endif() | ||
|
||
# Set the C++ standard | ||
set_target_properties(SpeedDemon PROPERTIES CXX_STANDARD 11 CXX_STANDARD_REQUIRED YES) | ||
|
||
# Installation (optional) | ||
install(TARGETS SpeedDemon DESTINATION lib) | ||
install(FILES include/SpeedDemon.h DESTINATION include) |
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
6 changes: 3 additions & 3 deletions
6
Wrappers/Pixelize/src/pixelize.cpp → Wrappers/SpeedDemon/src/SpeedDemon.cpp
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