[CMAKE]
authorAmine Khaldi <amine.khaldi@reactos.org>
Mon, 30 Aug 2010 13:00:41 +0000 (13:00 +0000)
committerAmine Khaldi <amine.khaldi@reactos.org>
Mon, 30 Aug 2010 13:00:41 +0000 (13:00 +0000)
- Improve pseh.

svn path=/branches/cmake-bringup/; revision=48656

lib/pseh/CMakeLists.txt

index 74c2c66..5843f6e 100644 (file)
@@ -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)