[CMAKE]
[reactos.git] / lib / drivers / ip / CMakeLists.txt
1
2 add_definitions(-D__NTDRIVER__)
3
4 include_directories(BEFORE ${REACTOS_SOURCE_DIR}/drivers/network/tcpip/include)
5 include_directories(BEFORE ${REACTOS_SOURCE_DIR}/lib/drivers/oskittcp/include)
6
7 foreach(arg ${defines})
8 set(result_defs "${result_defs} -D${arg}")
9 endforeach(arg ${defines})
10
11 set(CMAKE_ASM_COMPILE_OBJECT "<CMAKE_ASM_COMPILER> -x assembler-with-cpp -o <OBJECT> ${result_defs} -D__ASM__ <FLAGS> -c <SOURCE>")
12
13 file(GLOB_RECURSE ARCH_SOURCE ${CMAKE_CURRENT_SOURCE_DIR}/network/${ARCH}/checksum.S)
14 file(GLOB_RECURSE SOURCE "*.c")
15
16 add_library(ip ${ARCH_SOURCE} ${SOURCE})
17 add_dependencies(ip bugcodes)
18