Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
OpenWalnut
OpenWalnut Core
Commits
4a580211
Commit
4a580211
authored
Apr 27, 2009
by
wiebel
Browse files
some platform specific cmake stuff
parent
e7c2bfbf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
2 deletions
+29
-2
src/CMakeLists.txt
src/CMakeLists.txt
+29
-2
No files found.
src/CMakeLists.txt
View file @
4a580211
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
)
...
...
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