Skip to content

Commit 7221e72

Browse files
dimateosaothms
authored andcommitted
fix some target folders to respect parent cmake
1 parent c828c1b commit 7221e72

File tree

5 files changed

+26
-6
lines changed

5 files changed

+26
-6
lines changed

src/ifcconvert/CMakeLists.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,8 @@ if(WITH_RELATIONSHIP_VALIDATION)
1414
set_property(TARGET IfcConvert APPEND_STRING PROPERTY COMPILE_FLAGS " -DWITH_RELATIONSHIP_VALIDATION")
1515
endif()
1616

17-
install(TARGETS IfcConvert)
17+
install(TARGETS IfcConvert
18+
ARCHIVE DESTINATION ${LIBDIR}
19+
RUNTIME DESTINATION ${BINDIR}
20+
LIBRARY DESTINATION ${LIBDIR}
21+
)

src/ifcgeomserver/CMakeLists.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,8 @@ set(SOURCE_FILES ${CPP_FILES})
55
add_executable(IfcGeomServer ${SOURCE_FILES})
66
target_link_libraries(IfcGeomServer IfcGeom ${kernel_libraries} ${OpenCASCADE_LIBRARIES})
77

8-
install(TARGETS IfcGeomServer)
8+
install(TARGETS IfcGeomServer
9+
ARCHIVE DESTINATION ${LIBDIR}
10+
LIBRARY DESTINATION ${LIBDIR}
11+
RUNTIME DESTINATION ${BINDIR}
12+
)

src/ifcmax/CMakeLists.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,11 @@ if(HAS_MAX)
7979

8080
set_target_properties(IfcMax_${max_year} PROPERTIES SUFFIX ".dli")
8181

82-
install(TARGETS IfcMax_${max_year} RUNTIME DESTINATION ${BINDIR})
82+
install(TARGETS IfcMax_${max_year}
83+
ARCHIVE DESTINATION ${LIBDIR}
84+
LIBRARY DESTINATION ${LIBDIR}
85+
RUNTIME DESTINATION ${BINDIR}
86+
)
8387
endforeach()
8488
else()
8589
message(STATUS "Autodesk 3ds Max SDK not found, is required to build IFCMax.")

src/serializers/CMakeLists.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,11 @@ endif()
1919

2020
target_link_libraries(Serializers ${SERIALIZER_SCHEMA_LIBRARIES} ${OPENCOLLADA_LIBRARIES} ${USD_LIBRARIES} IfcGeom ${OPENCASCADE_LIBRARIES} ${kernel_libraries} IfcParse)
2121

22-
install(TARGETS Serializers)
22+
install(TARGETS Serializers
23+
ARCHIVE DESTINATION ${LIBDIR}
24+
RUNTIME DESTINATION ${BINDIR}
25+
LIBRARY DESTINATION ${LIBDIR}
26+
)
2327

2428
install(FILES ${SERIALIZERS_H_FILES}
2529
DESTINATION ${INCLUDEDIR}/serializers/

src/serializers/schema_dependent/CMakeLists.txt

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,12 @@ foreach(schema ${SCHEMA_VERSIONS})
1212
target_link_libraries(Serializers_ifc${schema} IfcGeom ${OPENCASCADE_LIBRARIES} ${HDF5_LIBRARIES})
1313
endif()
1414

15-
install(TARGETS Serializers_ifc${schema})
15+
install(TARGETS Serializers_ifc${schema}
16+
ARCHIVE DESTINATION ${LIBDIR}
17+
RUNTIME DESTINATION ${BINDIR}
18+
LIBRARY DESTINATION ${LIBDIR}
19+
)
1620
endforeach()
1721

1822

19-
set(SERIALIZER_SCHEMA_LIBRARIES ${SERIALIZER_SCHEMA_LIBRARIES} PARENT_SCOPE)
23+
set(SERIALIZER_SCHEMA_LIBRARIES ${SERIALIZER_SCHEMA_LIBRARIES} PARENT_SCOPE)

0 commit comments

Comments
 (0)