forked from davisking/dlib
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added a simple cmake script users can use to simplify their own CMake…
…Lists.txt scripts
- Loading branch information
Showing
2 changed files
with
22 additions
and
13 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,20 @@ | ||
|
||
|
||
# Determine the path to dlib. | ||
string(REPLACE "cmake" "" dlib_path ${CMAKE_CURRENT_LIST_FILE}) | ||
|
||
if (CMAKE_COMPILER_IS_GNUCXX) | ||
# By default, g++ won't warn or error if you forget to return a value in a | ||
# function which requires you to do so. This option makes it give a warning | ||
# for doing this. | ||
add_definitions("-Wreturn-type") | ||
endif() | ||
|
||
# Add folder containing dlib to the include search path. | ||
INCLUDE_DIRECTORIES(${dlib_path}/..) | ||
|
||
# This is really optional, but nice. It will make sure the build mode | ||
# created by cmake is always release by default. | ||
include(${dlib_path}/release_build_by_default) | ||
|
||
add_subdirectory(${dlib_path} dlib_build) |
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