mirror of https://github.com/emgucv/emgucv.git
Browse Source
Added CheckTargetArch module. Replace CMAKE_CL_64 with TARGET_ARCH_64
Added CheckTargetArch module. Replace CMAKE_CL_64 with TARGET_ARCH_64
git-svn-id: https://emgucv.svn.sourceforge.net/svnroot/emgucv/trunk@1189 d7f09016-e345-0410-b530-edf29a71df78UWP10

17 changed files with 52 additions and 55 deletions
-
51CMakeLists.txt
-
2Emgu.CV.Example/CameraCapture/CMakeLists.txt
-
2Emgu.CV.Example/FaceDetection/CMakeLists.txt
-
2Emgu.CV.Example/HelloWorld/CMakeLists.txt
-
2Emgu.CV.Example/MotionDetection/CMakeLists.txt
-
2Emgu.CV.Example/PedestrianDetection/CMakeLists.txt
-
2Emgu.CV.Example/PlanarSubdivision/CMakeLists.txt
-
2Emgu.CV.Example/SURFFeature/CMakeLists.txt
-
2Emgu.CV.Example/ShapeDetection/CMakeLists.txt
-
2Emgu.CV.Example/Simple3DReconstruction/CMakeLists.txt
-
2Emgu.CV.Example/TrafficSignRecognition/CMakeLists.txt
-
2Emgu.CV.Example/VideoSurveilance/CMakeLists.txt
-
2Emgu.CV.Example/Webservice_Client/CMakeLists.txt
-
2Emgu.CV.Example/Webservice_Host/CMakeLists.txt
-
12Emgu.CV.Extern/CMakeLists.txt
-
16cmake/modules/CheckTargetArch.cmake
-
2tests/cvextern_test/CMakeLists.txt
@ -0,0 +1,16 @@ |
|||
# - This is a support module for checking if the compiled target is 32/64bit |
|||
# It define the following macro: |
|||
# |
|||
# CHECK_TARGET_ARCH () |
|||
# |
|||
# if the target is 64bit, the flag TARGET_ARCH_64 will be set |
|||
|
|||
MACRO(CHECK_TARGET_ARCH) |
|||
IF(MSVC AND CMAKE_CL_64) |
|||
SET(TARGET_ARCH_64 TRUE) |
|||
ELSE() |
|||
IF(CMAKE_SIZEOF_VOID_P EQUAL 8) |
|||
SET(TARGET_ARCH_64 TRUE) |
|||
ENDIF() |
|||
ENDIF() |
|||
ENDMACRO(CHECK_TARGET_ARCH) |
Write
Preview
Loading…
Cancel
Save
Reference in new issue