Buildsystem: Ensure that we're on a Windows-platform if attempting to load Windows-specific includefiles

(Why the hoot can't Microsoft use the same things as the rest of the world, and stick to standards!?)

--HG--
branch : trunk
This commit is contained in:
click
2010-08-11 22:26:39 +02:00
parent 113d05b9d5
commit 293ed49eaa
3 changed files with 40 additions and 17 deletions
+14 -6
View File
@@ -14,12 +14,20 @@ set(mpq_STAT_SRCS
${sources_mpq}
)
include_directories(
${CMAKE_CURRENT_SOURCE_DIR}
${CMAKE_CURRENT_SOURCE_DIR}/win
${CMAKE_SOURCE_DIR}/externals/zlib
${CMAKE_SOURCE_DIR}/externals/bzip2
)
if( UNIX )
include_directories(
${CMAKE_CURRENT_SOURCE_DIR}
${CMAKE_SOURCE_DIR}/externals/zlib
${CMAKE_SOURCE_DIR}/externals/bzip2
)
elseif( WIN32 )
include_directories(
${CMAKE_CURRENT_SOURCE_DIR}
${CMAKE_CURRENT_SOURCE_DIR}/win
${CMAKE_SOURCE_DIR}/externals/zlib
${CMAKE_SOURCE_DIR}/externals/bzip2
)
endif()
add_library(mpq STATIC ${mpq_STAT_SRCS})