summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorPetr Mrázek2011-08-24 14:07:18 +0000
committerPetr Mrázek2011-08-24 14:07:18 +0000
commitf0473027a1b1b7d8f62d253c4ed5166070a94af1 (patch)
tree5ef5da926862026ddd0ec0b7acda7a6f51e58dc4 /CMakeLists.txt
parentc00fd00427648396fe04fb4c0a5a61978d9ac03a (diff)
downloadstonesense-f0473027a1b1b7d8f62d253c4ed5166070a94af1.tar.gz
stonesense-f0473027a1b1b7d8f62d253c4ed5166070a94af1.tar.bz2
stonesense-f0473027a1b1b7d8f62d253c4ed5166070a94af1.tar.xz
Fix linux allegro
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt21
1 files changed, 17 insertions, 4 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index abae4f8..0d4c80f 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -93,18 +93,31 @@ IF(UNIX)
)
OPTION(STONESENSE_INTERNAL_SO "Link with prebuilt internal allegro libs and headers." ON)
IF(STONESENSE_INTERNAL_SO)
+ SET(PROJECT_LIBS
+ ${stonesense_SOURCE_DIR}/alleg-ssense/bin-linux/liballegro.so.5.0
+ ${stonesense_SOURCE_DIR}/alleg-ssense/bin-linux/liballegro_primitives.so.5.0
+ ${stonesense_SOURCE_DIR}/alleg-ssense/bin-linux/liballegro_font.so.5.0
+ ${stonesense_SOURCE_DIR}/alleg-ssense/bin-linux/liballegro_image.so.5.0
+ ${stonesense_SOURCE_DIR}/alleg-ssense/bin-linux/liballegro_ttf.so.5.0
+ ${PROJECT_LIBS}
+ )
include_directories (
${include_directories}
${stonesense_SOURCE_DIR}/alleg-ssense/include-linux
)
- LINK_DIRECTORIES(
- ${LINK_DIRECTORIES}
- ${stonesense_SOURCE_DIR}/alleg-ssense/bin-linux
- )
install(DIRECTORY alleg-ssense/bin-linux/
DESTINATION "stonesense/deplibs"
PATTERN "CVS" EXCLUDE
PATTERN ".svn" EXCLUDE)
+ ELSE()
+ SET(PROJECT_LIBS
+ allegro
+ allegro_primitives
+ allegro_font
+ allegro_image
+ allegro_ttf
+ ${PROJECT_LIBS}
+ )
ENDIF()
ENDIF()
# windows