Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
D
dlib
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
钟尚武
dlib
Commits
97c55972
Commit
97c55972
authored
Mar 09, 2014
by
Davis King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated cmake file so the compiled python API file has the correct extension.
parent
27b479d7
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
add_python_module
dlib/add_python_module
+8
-1
No files found.
dlib/add_python_module
View file @
97c55972
...
@@ -61,13 +61,20 @@ include(${dlib_path}/cmake)
...
@@ -61,13 +61,20 @@ include(${dlib_path}/cmake)
macro(add_python_module module_name module_sources )
macro(add_python_module module_name module_sources )
ADD_LIBRARY(${module_name}_ SHARED ${module_sources} ${ARGN} )
ADD_LIBRARY(${module_name}_ SHARED ${module_sources} ${ARGN} )
TARGET_LINK_LIBRARIES(${module_name}_ ${Boost_LIBRARIES} ${PYTHON_LIBRARIES} dlib)
TARGET_LINK_LIBRARIES(${module_name}_ ${Boost_LIBRARIES} ${PYTHON_LIBRARIES} dlib)
if(WIN32)
if(WIN32
AND NOT CYGWIN
)
SET_TARGET_PROPERTIES( ${module_name}_
SET_TARGET_PROPERTIES( ${module_name}_
PROPERTIES
PROPERTIES
PREFIX ""
PREFIX ""
SUFFIX ".pyd"
SUFFIX ".pyd"
OUTPUT_NAME ${module_name}
OUTPUT_NAME ${module_name}
)
)
elseif(CYGWIN)
SET_TARGET_PROPERTIES( ${module_name}_
PROPERTIES
PREFIX ""
SUFFIX ".dll"
OUTPUT_NAME ${module_name}
)
else()
else()
SET_TARGET_PROPERTIES( ${module_name}_
SET_TARGET_PROPERTIES( ${module_name}_
PROPERTIES
PROPERTIES
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment