c274bd063dfa373ab71af97526e852f146212395
[reactos.git] / lib / pseh / CMakeLists.txt
1
2 file(GLOB_RECURSE ARCH_SOURCE ${CMAKE_CURRENT_SOURCE_DIR}/${ARCH}/*.c ${CMAKE_CURRENT_SOURCE_DIR}/${ARCH}/*.S)
3
4 get_directory_property(defines COMPILE_DEFINITIONS)
5
6 foreach(arg ${defines})
7 set(result_defs "${result_defs} -D${arg}")
8 endforeach(arg ${defines})
9
10 set(CMAKE_ASM_COMPILE_OBJECT "<CMAKE_ASM_COMPILER> -x assembler-with-cpp -o <OBJECT> ${result_defs} -D__ASM__ <FLAGS> -c <SOURCE>")
11
12 file(GLOB SOURCE "*.c")
13
14 add_library(pseh ${ARCH_SOURCE} ${SOURCE})
15 add_dependencies(pseh psdk)
16