Skip to content
Snippets Groups Projects
Commit 0bc2be45 authored by Constantin Papizh's avatar Constantin Papizh
Browse files

Linking errors

parent a479b3c1
No related branches found
No related tags found
1 merge request!38Linking errors
......@@ -21,13 +21,10 @@ if(WIN32)
file(GLOB CORE_SRCS
src/*.c
src/etc/*.c
src/win32/*.c
src/rpmalloc/*.c
)
file(GLOB CORE_HEADERS
include/*.h
src/win32/*.h
src/win32/*.h
)
endif()
......@@ -81,7 +78,7 @@ if(NOT (${SUBMODULES_NO_BUILD} MATCHES ON))
endif()
endif()
add_library(${PROJECT_NAME} STATIC ${CORE_SRCS} ${CORE_UNIX_SRCS})
add_library(${PROJECT_NAME} STATIC ${CORE_SRCS} ${CORE_HEADERS})
#This paths will be used by project-dependent project libraries
target_include_directories(${PROJECT_NAME} INTERFACE include/ src/rpmalloc/)
......@@ -109,6 +106,11 @@ if(ANDROID)
target_link_libraries(${PROJECT_NAME} dap_core_android)
endif()
if (WIN32)
add_subdirectory(src/win32)
target_link_libraries(${PROJECT_NAME} dap_core_win32)
endif()
if(BUILD_DAP_TESTS)
enable_testing()
add_subdirectory(test)
......
cmake_minimum_required(VERSION 3.0)
project (dap_core_win32 C)
file(GLOB CORE_SRCS *.c)
file(GLOB CORE_HEADERS *.h)
add_library(${PROJECT_NAME} STATIC ${CORE_SRCS} ${CORE_HEADERS})
target_include_directories(${PROJECT_NAME} INTERFACE .)
\ No newline at end of file
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