29 lines
750 B
Diff
29 lines
750 B
Diff
diff --git a/bfb/CMakeLists.txt b/bfb/CMakeLists.txt
|
|
index 008241d..be233aa 100644
|
|
--- bfb/CMakeLists.txt
|
|
+++ bfb/CMakeLists.txt
|
|
@@ -16,14 +16,17 @@ set ( bfb_HEADERS
|
|
${bfb_PUBLIC_HEADERS}
|
|
)
|
|
|
|
-add_executable (crctable
|
|
- crcmodel.h
|
|
- crcmodel.c
|
|
- crctable.c
|
|
+add_custom_command(
|
|
+ OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/crctable
|
|
+ COMMAND cc
|
|
+ ARGS -o ${CMAKE_CURRENT_BINARY_DIR}/crctable ${CMAKE_SOURCE_DIR}/bfb/crcmodel.h ${CMAKE_SOURCE_DIR}/bfb/crcmodel.c ${CMAKE_SOURCE_DIR}/bfb/crctable.c
|
|
+ DEPENDS crcmodel.h crcmodel.c crctable.c
|
|
)
|
|
|
|
-add_custom_command ( OUTPUT irda_fcs_table.c
|
|
- COMMAND crctable
|
|
+add_custom_command (
|
|
+ OUTPUT irda_fcs_table.c
|
|
+ DEPENDS crctable
|
|
+ COMMAND ${CMAKE_CURRENT_BINARY_DIR}/crctable
|
|
)
|
|
|
|
add_library ( bfb
|
|
|