Skip to content
Snippets Groups Projects
Commit 4ab41cdc authored by dmitriy.gerasimov's avatar dmitriy.gerasimov
Browse files

[*] Fixed unit tests

parent d37b2aa2
No related branches found
No related tags found
No related merge requests found
......@@ -9,13 +9,17 @@ set(CMAKE_C_FLAGS "-std=c11 -Wall -Wextra")
file(GLOB CORE_SRCS src/*.c)
file(GLOB CORE_HEADERS src/*.h)
file(GLOB CORE_HEADERS include/*.h include/unix/*.h include/unix/linux/*.h )
add_library(${PROJECT_NAME} STATIC ${CORE_SRCS} ${CORE_UNIX_SRCS})
#This paths will be used by project-dependent project libraries
target_include_directories(${PROJECT_NAME} INTERFACE include/)
if ( ${CMAKE_SYSTEM_NAME} MATCHES "Linux" )
set(LINUX "Linux")
endif()
if(UNIX)
add_subdirectory(src/unix)
target_link_libraries(${PROJECT_NAME} dap_core_unix)
......
......@@ -8,7 +8,7 @@ set(CMAKE_C_STANDARD 11)
add_subdirectory(libdap-test)
if(UNIX)
file(GLOB PLATROFM_DEP_SRC unix/*.c)
file(GLOB PLATROFM_DEP_SRC unix/*.c unix/*.h)
endif()
add_executable(${PROJECT_NAME} ${SRCS} ${PLATROFM_DEP_SRC})
......@@ -22,4 +22,5 @@ add_test(
if(UNIX)
target_include_directories(${PROJECT_NAME} PRIVATE unix)
target_include_directories(${PROJECT_NAME} PRIVATE unix/linux)
endif()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment