Author: akhaldi
Date: Mon Aug 30 13:00:41 2010
New Revision: 48656
URL:
http://svn.reactos.org/svn/reactos?rev=48656&view=rev
Log:
[CMAKE]
- Improve pseh.
Modified:
branches/cmake-bringup/lib/pseh/CMakeLists.txt
Modified: branches/cmake-bringup/lib/pseh/CMakeLists.txt
URL:
http://svn.reactos.org/svn/reactos/branches/cmake-bringup/lib/pseh/CMakeLis…
==============================================================================
--- branches/cmake-bringup/lib/pseh/CMakeLists.txt [iso-8859-1] (original)
+++ branches/cmake-bringup/lib/pseh/CMakeLists.txt [iso-8859-1] Mon Aug 30 13:00:41 2010
@@ -1,6 +1,17 @@
-file(GLOB_RECURSE ARCH_SOURCE ${CMAKE_CURRENT_SOURCE_DIR}/${ARCH}/*.c
${CMAKE_CURRENT_SOURCE_DIR}/${ARCH}/*.S)
-file(GLOB SOURCE "*.c")
-add_library(pseh ${ARCH_SOURCE} ${SOURCE})
+list(APPEND SOURCE framebased.c)
+
+if(ARCH MATCHES i386)
+list(APPEND SOURCE
+ i386/framebased.S
+ i386/framebased-gcchack.c
+ i386/framebased-gcchack-asm.S)
+elseif(ARCH MATCHES amd64)
+list(APPEND SOURCE amd64/framebased.S)
+elseif(ARCH MATCHES powerpc)
+list(APPEND SOURCE powerpc/framebased.S)
+endif(ARCH MATCHES i386)
+
+add_library(pseh ${SOURCE})
add_dependencies(pseh psdk)