Commit 4a580211 authored by wiebel's avatar wiebel
Browse files

some platform specific cmake stuff

parent e7c2bfbf
CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
PROJECT( BrainCognize )
# First of all find out which platform we are on
# and set our own platform variable
SET( BRAINCOGNIZE_PLATFORM_LINUX "Linux" )
SET( BRAINCOGNIZE_PLATFORM_WINDOWS "Windows" )
IF( CMAKE_HOST_SYSTEM MATCHES Linux )
SET( BRAINCOGNIZE_PLATFORM
${BRAINCOGNIZE_PLATFORM_LINUX}
CACHE STRING "The platform we are building on." )
ENDIF( CMAKE_HOST_SYSTEM MATCHES Linux )
IF( CMAKE_HOST_SYSTEM MATCHES Windows )
SET( BRAINCOGNIZE_PLATFORM
${BRAINCOGNIZE_PLATFORM_WINDOWS}
CACHE STRING "The platform we are building on." )
ENDIF( CMAKE_HOST_SYSTEM MATCHES Windows )
# Package dependencies:
FIND_PACKAGE( Qt4 REQUIRED )
FIND_PACKAGE( OpenGL REQUIRED )
......@@ -17,9 +33,20 @@ SET( QT_LINK_LIBRARIES ${QT_QTCORE_LIBRARY}
${QT_QTGUI_LIBRARY}
${QT_QTOPENGL_LIBRARY} )
SET( LIBRARY_OUTPUT_PATH ${PROJECT_BINARY_DIR}/lib )
IF( BRAINCOGNIZE_PLATFORM MATCHES ${BRAINCOGNIZE_PLATFORM_WINDOWS} )
SET( LIBRARY_OUTPUT_PATH
${PROJECT_BINARY_DIR}/bin
CACHE PATH "The libraries will be put into this directory.")
MESSAGE( STATUS "WIN" )
ELSE( BRAINCOGNIZE_PLATFORM MATCHES ${BRAINCOGNIZE_PLATFORM_WINDOWS} )
SET( LIBRARY_OUTPUT_PATH
${PROJECT_BINARY_DIR}/lib
CACHE PATH "The libraries will be put into this directory.")
MESSAGE( STATUS "LIN" )
ENDIF( BRAINCOGNIZE_PLATFORM MATCHES ${BRAINCOGNIZE_PLATFORM_WINDOWS} )
MARK_AS_ADVANCED( LIBRARY_OUTPUT_PATH )
SET( EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}/bin )
SET( EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}/bin CACHE PATH "The executables will be put into this directory.")
MARK_AS_ADVANCED( EXECUTABLE_OUTPUT_PATH )
IF( CXXTEST_FOUND )
......
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