Configure workspace
This commit is contained in:
20
test/cmd_parser/CMakeLists.txt
Normal file
20
test/cmd_parser/CMakeLists.txt
Normal file
@@ -0,0 +1,20 @@
|
||||
cmake_minimum_required(VERSION 3.10)
|
||||
|
||||
set(TEST_NAME cmd_parser)
|
||||
|
||||
set(INCLUDE_DIRS
|
||||
../../cmd_parser
|
||||
helpers/inc
|
||||
)
|
||||
|
||||
set(SRCS
|
||||
../../cmd_parser/cmd_parser.c
|
||||
|
||||
# helpers/src/
|
||||
cmd_parser_test.c
|
||||
)
|
||||
|
||||
add_definitions(-DTEST)
|
||||
add_executable(${TEST_NAME} ${SRCS})
|
||||
|
||||
target_include_directories(${TEST_NAME} PUBLIC ${INCLUDE_DIRS})
|
||||
Reference in New Issue
Block a user