Commit 59def2d5 authored by Jan Möbius's avatar Jan Möbius
Browse files

Updated PhySim finder



git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@6928 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 7fdf9c6f
......@@ -7,22 +7,23 @@
# PHYSIM_LIBRARY - Link these to use PHYSIM
#
IF (PHYSIM_INCLUDE_DIR)
IF (PHYSIM_INCLUDE_DIRS)
# Already in cache, be silent
SET(PHYSIM_FIND_QUIETLY TRUE)
ENDIF (PHYSIM_INCLUDE_DIR)
ENDIF (PHYSIM_INCLUDE_DIRS)
FIND_PATH( PHYSIM_INCLUDE_DIR PhySim/Config/PhySimDefines.hh
FIND_PATH( PHYSIM_INCLUDE_DIRS PhySim/Config/PhySimDefines.hh
PATHS "${CMAKE_SOURCE_DIR}/libs" )
add_definitions (-DPHYSIMDLL -DUSEPHYSIM )
IF (PHYSIM_INCLUDE_DIR)
IF (PHYSIM_INCLUDE_DIRS)
SET(PHYSIM_FOUND TRUE)
SET( PHYSIM_LIBRARY_DIR "${ACG_PROJECT_LIBDIR}" )
SET( PHYSIM_LIBRARY "PhySim")
ELSE (PHYSIM_INCLUDE_DIR)
list (APPEND PHYSIM_INCLUDE_DIRS "${CMAKE_BINARY_DIR}/libs/PhySim")
ELSE (PHYSIM_INCLUDE_DIRS)
SET( PHYSIM_FOUND FALSE )
SET( PHYSIM_LIBRARY_DIR )
ENDIF (PHYSIM_INCLUDE_DIR)
ENDIF (PHYSIM_INCLUDE_DIRS)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment