Stasik0 пре 9 година
родитељ
комит
a3dac85c49
1 измењених фајлова са 1 додато и 2 уклоњено
  1. 1 2
      CMakeLists.txt

+ 1 - 2
CMakeLists.txt

@@ -148,8 +148,7 @@ if(CMAKE_BUILD_TYPE STREQUAL "MinSizeRel" OR CMAKE_BUILD_TYPE STREQUAL "Release"
     add_library(open62541-object OBJECT ${PROJECT_BINARY_DIR}/open62541.c)
     add_library(open62541 SHARED $<TARGET_OBJECTS:open62541-object>)
 else()
-    ##compile from individual c files
-    add_library(open62541-object OBJECT ${lib_sources})
+    add_library(open62541-object OBJECT ${lib_sources} ${internal_headers} ${exported_headers})
     include_directories(${PROJECT_SOURCE_DIR}/include)
     include_directories(${PROJECT_SOURCE_DIR}/deps)
     include_directories(${PROJECT_SOURCE_DIR}/src)