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
2f464161
Commit
2f464161
authored
Feb 10, 2013
by
Davis King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
simplified cmake file
parent
0a39006d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
12 deletions
+2
-12
CMakeLists.txt
dlib/test/blas_bindings/CMakeLists.txt
+2
-12
No files found.
dlib/test/blas_bindings/CMakeLists.txt
View file @
2f464161
...
@@ -3,12 +3,7 @@
...
@@ -3,12 +3,7 @@
# information about it at http://www.cmake.org
# information about it at http://www.cmake.org
#
#
# setting this makes CMake allow normal looking IF ELSE statements
cmake_minimum_required
(
VERSION 2.6
)
SET
(
CMAKE_ALLOW_LOOSE_LOOP_CONSTRUCTS true
)
cmake_minimum_required
(
VERSION 2.4
)
if
(
COMMAND cmake_policy
)
cmake_policy
(
SET CMP0003 NEW
)
endif
(
COMMAND cmake_policy
)
# This variable contains a list of all the tests we are building
# This variable contains a list of all the tests we are building
# into the regression test suite.
# into the regression test suite.
...
@@ -30,14 +25,9 @@ PROJECT(${target_name})
...
@@ -30,14 +25,9 @@ PROJECT(${target_name})
# cmake that they are part of our target (which is the executable named test)
# cmake that they are part of our target (which is the executable named test)
ADD_EXECUTABLE
(
${
target_name
}
../main.cpp ../tester.cpp
${
tests
}
)
ADD_EXECUTABLE
(
${
target_name
}
../main.cpp ../tester.cpp
${
tests
}
)
# add the folder containing the dlib folder to the include path
INCLUDE_DIRECTORIES
(
../../..
)
ADD_DEFINITIONS
(
-DDLIB_TEST_BLAS_BINDINGS
)
ADD_DEFINITIONS
(
-DDLIB_TEST_BLAS_BINDINGS
)
# There is a CMakeLists.txt file in the dlib source folder that tells cmake
# how to build the dlib library. Tell cmake about that file.
add_subdirectory
(
../.. dlib_build
)
# Tell cmake to link our target executable to dlib
# Tell cmake to link our target executable to dlib
include
(
../../cmake
)
TARGET_LINK_LIBRARIES
(
${
target_name
}
dlib
)
TARGET_LINK_LIBRARIES
(
${
target_name
}
dlib
)
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